Dear All,
I setup my entity bean with the following hibernate codes:
Code:
@Spatial(spatialMode = SpatialMode.GRID, name="location")
//This annotation tells hibernate search that this class has to be indexed
@Indexed(index = "ProductArticle")
@Analyzer(impl = org.apache.lucene.analysis.standard.StandardAnalyzer.class)
@AnalyzerDef(name = "customanalyzer", [b]tokenizer = @TokenizerDef(factory = StandardTokenizerFactory.class)[/b],
filters = {@TokenFilterDef(factory = LowerCaseFilterFactory.class),
@TokenFilterDef(factory = SnowballPorterFilterFactory.class, params = {
@Parameter(name = "language", value = "English"),
}),
@TokenFilterDef(factory = SynonymFilterFactory.class, params = {
@Parameter(name = "ignoreCase", value = "true"),
@Parameter(name = "expand", value = "false"),
@Parameter(name = "synonyms", value="synonyms.txt")
}),
},charFilters = { @CharFilterDef(factory = HTMLStripCharFilterFactory.class)})
When I enter very specific words separated with spaces, it always returns too many records in the result.
Is tokenizer "tokenizer = @TokenizerDef(factory = StandardTokenizerFactory.class)" as shown above in Bold is required?
Very appreciate for any suggestion and help.
Best regards & Happy New Year.
Sam