Hi to all
I am trying that the GN3 records for a specific group get a boost so
that they appear first, mainly I want for harvested records to appear
more at bottom of the search and a specific user/group more at the top
I looked at the read the docs
http://geonetwork-opensource.org/manuals/3.0.5/eng/users/customizing-application/configuring-search-fields.html
And edited the WEB-INF/config-lucene.xml by adding the following
<boostDocument
name="org.fao.geonet.kernel.search.function.ImportantDocument">
<Param name="fields" type="java.lang.String" value="_groupOwner"/>
<Param name="values" type="int" value="170"/>
<Param name="boosts" type="java.lang.String" value=".4F"/>- ->
</boostDocument>
1) I am not certain if the field name has to be value="_groupOwner" or
"groupOwner" (<field name="_groupOwner" tagName="groupOwner"/>)
2) I looked in the database on the table public.groups and used the
number from the ID of the group I want to boost
I have reload the index, file and reindex but nothing as changed. Any
tips of information about the topic? I think I am doing something wrong
or I don't understand the concept of boosting.
Have a nice weekend
Jorge
--
ISRIC - World Soil Information
Post: PO box 353, 6700 AJ, Wageningen,
The Netherlands Visiting Address: Droevendaalsesteeg 3, 6708 PB
Wageningen (Bdg. 101),
Office: C.013
Office Phone: +31 (0) 317 4 83715
Mobile Phone: +31 (0) 613 9 06950
Skype: jorge.de.jesus (Jorge Samuel Mendes de Jesus)
OpenPGPKey: 0xA3D0065A