lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From 小鱼儿 <>
Subject Compatibility problems between AnalyzerWrapper api & MultiTerms.getTerms api
Date Tue, 14 Apr 2020 07:51:55 GMT
I'm using AnalyzerWrapper to do per-field analyzer to do special indexing:

PerFieldAnalyzerWrapper analyzer = new PerFieldAnalyzerWrapper(..);
// PerFieldAnalyzerWrapper  is subclass of Lucene's AnalyzerWrapper
IndexWriterConfig iwc = new IndexWriterConfig(analyzer);

However, i found that later when i used MultiTerms.getTerms to load the
specific field's term dictionary, it's like it is still analyzed by
Lucene's StandardAnalyzer.

I have to use another trick to bypass this problem(use
custom IndexableField class to do per-field custom analyzer, which is not
needed to detail here), i guess ultiTerms.getTerms is an experimental api
so it's not consistent with nalyzerWrapper?

  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message