Re: How to access DocValues inside a customized collector?

2018-09-20 Thread Lisheng Zhang
Erick: Thanks very much for quick help, Luke you referred worked well (i found binary DocValues did get put in well) However i am still not sure how to efficiently access DocValues in a collector, " The Terms component directly access the indexed data and can be used to poke around in the indexed

Re: How to access DocValues inside a customized collector?

2018-09-20 Thread Erick Erickson
What Luke are you using? I think this one is being maintained: https://github.com/DmitryKey/luke The Terms component directly access the indexed data and can be used to poke around in the indexed data. I'll skip the accessing DocValues as I have to go back and look every time. On Thu, Sep 20, 201

How to access DocValues inside a customized collector?

2018-09-20 Thread Lisheng Zhang
we need to use binary DocValues (in a customized collector) added during indexing, i first tested in standard TopScoreDocCollector, it seems that we need to: LeafReaderContext => reader() => get binary iterator => advanced to correct location Is this the correct way or actually we have a better A

Re: MultiPhraseQuery or PhraseQuery to take the synonyms into account?

2018-09-20 Thread baris.kazar
i should have asked this way as Mike made clear for MultiPhraseQuery: is PhraseQuery ok to account for synonyms? Best > On Sep 20, 2018, at 2:02 PM, baris.ka...@oracle.com wrote: > > Hi,- > > should i use MultiPhraseQuery or PhraseQuery to take synonyms into account? > > Best regards > > bari

MultiPhraseQuery or PhraseQuery to take the synonyms into account?

2018-09-20 Thread baris . kazar
Hi,-  should i use MultiPhraseQuery or PhraseQuery to take synonyms into account? Best regards baris - To unsubscribe, e-mail: java-user-unsubscr...@lucene.apache.org For additional commands, e-mail: java-user-h...@lucene.a

Question About FST, multiple-column index

2018-09-20 Thread ly??
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