| Hello, What I can tell you is this shouldn't work, even with Lucene:
@Field(store = Store.YES, analyzer = @Analyzer(definition = "phonetic"))
@Field(store = Store.YES, analyzer = @Analyzer(definition = "ngram"))
private String value;
You need to give a different name to each field:
@Field(store = Store.YES, analyzer = @Analyzer(definition = "phonetic"))
@Field(name = "value_ngram", store = Store.YES, analyzer = @Analyzer(definition = "ngram"))
private String value;
Now the fact that duplicate fields work (or at least seems to work) with Lucene is a problem... But adding an exception would break backward compatibility, so I'm inclined to leave it as is. Duplicate fields are forbidden in Hibernate Search 6 already. |