cuba-platform / fts

Full-Text Search Addon
https://www.cuba-platform.com/
Apache License 2.0
4 stars 1 forks source link

Provide an easy way to specify custom analyzer for FTS IndexWriter #12

Closed haulmont-git closed 6 years ago

haulmont-git commented 7 years ago

Now there is a static method LuceneWriter.createWriter that creates an IndexWriter with EntityAttributeAnalyzer. There may be cases when we want another analyzer (to split text into tokens with some other rules). The current analyzer doesn't allow to have tokens with dots, for example "A.14.45" won't be searched. The Lucene StandardAnalyzer allows this search.


Original issue: https://youtrack.haulmont.com/issue/PL-9636

gorbunkov commented 6 years ago

Implemented during FTS refactoring. The com.haulmont.fts.core.sys.IndexWriterProviderBean#createAnalyzer method can be overriden