You might want to index the name field normally (as StringField, for
example), then index the age as a NumericDocValuesField, and then make a
BooleanQuery with two required clauses, one clause TermQuery on the name,
the other a NumericDocValuesField.newSlowExactQuery. Even though its name
is "slow
No way. And this is the point. To have combined index you need to combine
fields concatenating terms. It will be faster but it brings much other
hurdles. Do you think that this is the real problem? What's the search time
now and how do you search exactly?
On Thu, Sep 20, 2018 at 5:57 PM lyé“– <5204
Hi,
When I using Lucene as a Full Text search engine, I have a question about multi
field index. For example, We have two fields: user, age. We always want to
search one user which name is "xxx" and with the exactly age. So we add two
fields to the lucene(may be there is better ways, I just wa