[GeoNetwork-devel] [GeoNetwork opensource Developer website] #708: Add document and field boosing at index time in Lucene configuration

#708: Add document and field boosing at index time in Lucene configuration
-------------------------+--------------------------------------------------
Reporter: fxp | Owner: geonetwork-devel@…
     Type: enhancement | Status: new
Priority: major | Milestone: v2.7.0
Component: General | Version:
Keywords: |
-------------------------+--------------------------------------------------
* Default !GeoNetwork lucence configuration does not set any boosts (ie.
not changed)
  * This feature has to be used by expert users to alter default search
behavior scoring according to catalogue content.
  * Add configuration for boosting fields in lucene-config.xml. Some fields
are more important than others. This type of configuration will alter OR
queries behavior.
   * Configuration: Example to promote title
{{{
<field name="title" boost="1.5F"/>
}}}
  * Add configuration for boosting a document in lucene-config.xml.
   * A use case could be: to promote series and not promote datasets part
of a series.
   * A sample boosting class is added: !ImportantDocument.
   * Boost factor for a document is computed based on document field and
value match.
   * Example 1: the following configuration will
    * Default boost is 1
    * Add .1 to a document having type = series
    * Remove .3 to a document having type = service
    * Add .4 to a document having keyword = Elevation
{{{
<boostDocument
name="org.fao.geonet.kernel.search.function.ImportantDocument">
     <Param name="fields" type="java.lang.String"
value="type,type,keyword"/>
     <Param name="values" type="java.lang.String"
value="series,service,Elevation"/>
     <Param name="boosts" type="java.lang.String" value=".1F,-.3F,.4F"/>
</boostDocument>
}}}
   * Example 2: to promote series and not promote datasets part of a
series:
{{{
<boostDocument
name="org.fao.geonet.kernel.search.function.ImportantDocument">
    <Param name="fields" type="java.lang.String" value="type,parentUuid"/>
     <Param name="values" type="java.lang.String" value="series,NOTNULL"/>
     <Param name="boosts" type="java.lang.String" value=".1F,-.3F"/>
</boostDocument>
}}}

--
Ticket URL: <http://trac.osgeo.org/geonetwork/ticket/708&gt;
GeoNetwork opensource Developer website <http://sourceforge.net/projects/geonetwork/&gt;
GeoNetwork opensource is a standards based, Free and Open Source catalog application to manage spatially referenced resources through the web. It provides powerful metadata editing and search functions as well as an embedded interactive web map viewer. This website contains information related to the development of the software.

#708: Add document and field boosing at index time in Lucene configuration
--------------------------+-------------------------------------------------
  Reporter: fxp | Owner: geonetwork-devel@…
      Type: enhancement | Status: closed
  Priority: major | Milestone: v2.7.0
Component: General | Version:
Resolution: fixed | Keywords:
--------------------------+-------------------------------------------------
Changes (by fxp):

  * status: new => closed
  * resolution: => fixed

Comment:

Committed revision 8583.

--
Ticket URL: <http://trac.osgeo.org/geonetwork/ticket/708#comment:1&gt;
GeoNetwork opensource Developer website <http://sourceforge.net/projects/geonetwork/&gt;
GeoNetwork opensource is a standards based, Free and Open Source catalog application to manage spatially referenced resources through the web. It provides powerful metadata editing and search functions as well as an embedded interactive web map viewer. This website contains information related to the development of the software.