[GeoNetwork-devel] xml.search - output fields

Hi Jesse/all,

it saw it in trunk, but is it supported in v2.6.4?
https://geonetwork.svn.sourceforge.net/svnroot/geonetwork/tags/2.6.4/web/src/main/webapp/WEB-INF/config-lucene.xml
https://geonetwork.svn.sourceforge.net/svnroot/geonetwork/trunk/web/src/main/webapp/WEB-INF/config-lucene.xml

kind regards
Jørn-Vegard Røsnes

----- Original Message -----
From: "Jesse Eichar" <jesse.eichar@anonymised.com>
To: "Jørn Vegard Røsnes" <jorn@anonymised.com>
Cc: geonetwork-devel@lists.sourceforge.net
Sent: Wednesday, 7 March, 2012 2:06:31 PM
Subject: Re: [GeoNetwork-devel] xml.search - output fields

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

Ah sorry I missed the comment about 2.6.4. As far as I know it is not present in 2.6

On Wed, Mar 7, 2012 at 2:23 PM, Jørn Vegard Røsnes <jorn@anonymised.com> wrote:

Hi Jesse/all,

it saw it in trunk, but is it supported in v2.6.4?
https://geonetwork.svn.sourceforge.net/svnroot/geonetwork/tags/2.6.4/web/src/main/webapp/WEB-INF/config-lucene.xml
https://geonetwork.svn.sourceforge.net/svnroot/geonetwork/trunk/web/src/main/webapp/WEB-INF/config-lucene.xml

kind regards
Jørn-Vegard Røsnes

----- Original Message -----
From: “Jesse Eichar” <jesse.eichar@anonymised.com>
To: “Jørn Vegard Røsnes” <jorn@anonymised.com>
Cc: geonetwork-devel@lists.sourceforge.net
Sent: Wednesday, 7 March, 2012 2:06:31 PM
Subject: Re: [GeoNetwork-devel] xml.search - output fields

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


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

Hi

Le 7 mars 2012 14:23, Jørn Vegard Røsnes <jorn@anonymised.com> a écrit :

Hi Jesse/all,

it saw it in trunk, but is it supported in v2.6.4?

No. It was done for that proposal [1].

Cheers.

Francois

[1] http://trac.osgeo.org/geonetwork/wiki/proposals/LuceneOnlySearch

https://geonetwork.svn.sourceforge.net/svnroot/geonetwork/tags/2.6.4/web/src/main/webapp/WEB-INF/config-lucene.xml
https://geonetwork.svn.sourceforge.net/svnroot/geonetwork/trunk/web/src/main/webapp/WEB-INF/config-lucene.xml

kind regards
Jørn-Vegard Røsnes

----- Original Message -----
From: "Jesse Eichar" <jesse.eichar@anonymised.com>
To: "Jørn Vegard Røsnes" <jorn@anonymised.com>
Cc: geonetwork-devel@lists.sourceforge.net
Sent: Wednesday, 7 March, 2012 2:06:31 PM
Subject: Re: [GeoNetwork-devel] xml.search - output fields

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

------------------------------------------------------------------------------
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