[GeoNetwork-users] Metadata weight in geonetwork searches

Hi list,
In our geonetwork catalog, there are metadata created with our geonetwork and metadata harvested from other catalogs.
Currently, harvested metadata are always in the top, partly because there are many more.
Is there a way to give more weight to native metadata of the catalog (i.e. not harvested) so that they are displayed first in search results ?
Maybe using Lucene configuration ?

Thanks for your help
Matthieu

Hi

I think this is what you need:
https://github.com/geonetwork/core-geonetwork/blob/develop/web/src/main/webapp/WEB-INF/config-lucene.xml#L300-L320

I haven't use this feature, but I guess you can use it with the Lucene
field *_isHarvested* that gets the value *y* if it's from a harvested
metadata, to lower the boosting for harvested metadata, probably something
like this should work (check and try with different values for boosts:

<boostDocument
name="org.fao.geonet.kernel.search.function.ImportantDocument">
    <Param name="fields" type="java.lang.String"
value="_isHarvested,_isHarvested"/>
    <Param name="values" type="java.lang.String" value="y,n"/>
    <Param name="boosts" type="java.lang.String" value="-.3F,.1F"/>
  </boostDocument>

Regards,
Jose García

On Wed, Nov 8, 2017 at 10:32 AM, Matthieu Lefort <mlefort@anonymised.com> wrote:

Hi list,
In our geonetwork catalog, there are metadata created with our geonetwork
and metadata harvested from other catalogs.
Currently, harvested metadata are always in the top, partly because there
are many more.
Is there a way to give more weight to native metadata of the catalog (i.e.
not harvested) so that they are displayed first in search results ?
Maybe using Lucene configuration ?

Thanks for your help
Matthieu

------------------------------------------------------------
------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
GeoNetwork-users mailing list
GeoNetwork-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geonetwork-users
GeoNetwork OpenSource is maintained at http://sourceforge.net/
projects/geonetwork

--

*Vriendelijke groeten / Kind regards,Jose García
<http://www.geocat.net/&gt;Veenderweg 136721 WD BennekomThe NetherlandsT: +31
(0)318 416664 <+31318416664> <https://www.facebook.com/geocatbv&gt;
<https://twitter.com/geocat_bv&gt;
<https://plus.google.com/u/1/+GeocatNetbv/posts&gt;Please consider the
environment before printing this email.*

Thank you for your response. I think it’s exactly what i need. I’m gonna try that.
Regards,
Matthieu

Le 8 nov. 2017 à 11:29, Jose Garcia <jose.garcia@anonymised.com> a écrit :

Hi

I think this is what you need: https://github.com/geonetwork/core-geonetwork/blob/develop/web/src/main/webapp/WEB-INF/config-lucene.xml#L300-L320

I haven't use this feature, but I guess you can use it with the Lucene field _isHarvested that gets the value y if it's from a harvested metadata, to lower the boosting for harvested metadata, probably something like this should work (check and try with different values for boosts:

<boostDocument name="org.fao.geonet.kernel.search.function.ImportantDocument">
    <Param name="fields" type="java.lang.String" value="_isHarvested,_isHarvested"/>
    <Param name="values" type="java.lang.String" value="y,n"/>
    <Param name="boosts" type="java.lang.String" value="-.3F,.1F"/>
  </boostDocument>

Regards,
Jose García

On Wed, Nov 8, 2017 at 10:32 AM, Matthieu Lefort <mlefort@anonymised.com <mailto:mlefort@anonymised.com>> wrote:
Hi list,
In our geonetwork catalog, there are metadata created with our geonetwork and metadata harvested from other catalogs.
Currently, harvested metadata are always in the top, partly because there are many more.
Is there a way to give more weight to native metadata of the catalog (i.e. not harvested) so that they are displayed first in search results ?
Maybe using Lucene configuration ?

Thanks for your help
Matthieu

------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
GeoNetwork-users mailing list
GeoNetwork-users@lists.sourceforge.net <mailto:GeoNetwork-users@anonymised.comrceforge.net>
https://lists.sourceforge.net/lists/listinfo/geonetwork-users
GeoNetwork OpenSource is maintained at http://sourceforge.net/projects/geonetwork

--
Vriendelijke groeten / Kind regards,

Jose García

<http://www.geocat.net/&gt;
Veenderweg 13
6721 WD Bennekom
The Netherlands
T: +31 (0)318 416664 <tel:+31318416664>

<https://www.facebook.com/geocatbv&gt; <https://twitter.com/geocat_bv&gt; <https://plus.google.com/u/1/+GeocatNetbv/posts&gt;

Please consider the environment before printing this email.