#899 closed enhancement (fixed)
Lucene / Add searching and indexing per field analyzers
Reported by: | fxp | Owned by: | |
---|---|---|---|
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 , 13 years ago
Resolution: | → fixed |
---|---|
Status: | new → closed |
comment:2 by , 13 years ago
Milestone: | Future release → v2.7.0 |
---|
Note:
See TracTickets
for help on using tickets.
Committed revision 9119.