Hi all,
we are utilizing GeoNetwork xml.search for B2B communication.
In the xml.search output we would love to have:
- popularity
- rating
- orgName
Do you know if this is possible to configure?
In LuceneSearcher.java - present method there is _luceneConfig.getDumpFields().
May this be the option we need...
if (fast) {
md = getMetadataFromIndex(doc, id, false, null);
} else if ("index".equals(sFast)) {
// Retrieve information from the index for the record
md = getMetadataFromIndex(doc, id, true, _luceneConfig.getDumpFields());
// Retrieve dynamic properties according to context (eg. editable)
gc.getDataManager().buildExtraMetadataInfo(srvContext, id, md.getChild(Edit.RootChild.INFO, Edit.NAMESPACE));
} else if (srvContext != null) {
boolean forEditing = false, withValidationErrors = false, keepXlinkAttributes = false;
md = gc.getDataManager().getMetadata(srvContext, id, forEditing, withValidationErrors, keepXlinkAttributes);
}
kind regards
Jørn-Vegard Røsnes
Have you looked at the config-lucene.xml? It declares the dumpFields.
Jesse
On Wed, Mar 7, 2012 at 11:38 AM, Jørn Vegard Røsnes <jorn@anonymised.com> wrote:
Hi all,
we are utilizing GeoNetwork xml.search for B2B communication.
In the xml.search output we would love to have:
- popularity
- rating
- orgName
Do you know if this is possible to configure?
In LuceneSearcher.java - present method there is _luceneConfig.getDumpFields().
May this be the option we need…
if (fast) {
md = getMetadataFromIndex(doc, id, false, null);
} else if (“index”.equals(sFast)) {
// Retrieve information from the index for the record
md = getMetadataFromIndex(doc, id, true, _luceneConfig.getDumpFields());
// Retrieve dynamic properties according to context (eg. editable)
gc.getDataManager().buildExtraMetadataInfo(srvContext, id, md.getChild(Edit.RootChild.INFO, Edit.NAMESPACE));
} else if (srvContext != null) {
boolean forEditing = false, withValidationErrors = false, keepXlinkAttributes = false;
md = gc.getDataManager().getMetadata(srvContext, id, forEditing, withValidationErrors, keepXlinkAttributes);
}
kind regards
Jørn-Vegard Røsnes
Virtualization & Cloud Management Using Capacity Planning
Cloud computing makes use of virtualization - but cloud computing
also focuses on allowing computing to be delivered as a service.
http://www.accelacomm.com/jaw/sfnl/114/51521223/
GeoNetwork-devel mailing list
GeoNetwork-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geonetwork-devel
GeoNetwork OpenSource is maintained at http://sourceforge.net/projects/geonetwork