Opened 12 years ago

Closed 12 years ago

Last modified 12 years ago

#899 closed enhancement (fixed)

Lucene / Add searching and indexing per field analyzers

Reported by: fxp Owned by: geonetwork-devel@…
Priority: major Milestone: v2.7.0
Component: General Version:
Keywords: Cc:

Description

Currently the same PerFieldAnalyzer is used at indexing and searching time. In some case, an analyzer could be applied at indexing and another at searching time. For example when using a SynonymAnalyzer. We only need synonym expansion during indexing or during searching, not both.

By default, searching analyzer is the same as indexing analyzer.

Example configuration in config-lucene.xml:

<fieldSpecificSearchAnalyzer>
    <Field name="loc" analyzer="org.apache.lucene.analysis.standard.StandardAnalyzer"/>
</fieldSpecificSearchAnalyzer>

Which will overrides indexing analyzer for the field:

  <fieldSpecificAnalyzer>
    ...
    <Field name="loc" analyzer="org.fao.geonet.kernel.search.geonames.SynonymAnalyzer"/>

Change History (2)

comment:1 by fxp, 12 years ago

Resolution: fixed
Status: newclosed

Committed revision 9119.

comment:2 by fxp, 12 years ago

Milestone: Future releasev2.7.0
Note: See TracTickets for help on using tickets.