Re: How do I build a DocValuesIterator similar to the way FieldCache can be used?

2019-02-10 Thread MarcoR
Answering my own question in case someone fails to find the answer easily. As pointed out in this really helpful discussion , MultiDocValues can be used. I t

How do I build a DocValuesIterator similar to the way FieldCache can be used?

2019-02-10 Thread MarcoR
Greetings, I'm trying to use BinaryDocValues but I cannot find a way to create an instance of this type in the way FieldCache can be used: that is, provide an IndexReader and get back the field cache. DocValues.getBinary is expecting a LeafReader and I cannot use it by simply providing an Index

Re: How can I use FunctionScoreQuery to replace CustomScoreQuery?

2019-01-29 Thread MarcoR
Thanks for the clarification Mikhail, That is my understanding as well. Made some progress with help from your responses. All the best M -- Sent from: http://lucene.472066.n3.nabble.com/Lucene-Java-Users-f532864.html - To

Re: How can I use FunctionScoreQuery to replace CustomScoreQuery?

2019-01-27 Thread MarcoR
Thanks Mikhail, I'm afraid I don't understand your suggestion though. I worked more on DoubleValuesSource.fromField's implementation since sending my first email. As far as I can see, I need to write custom code in my DoubleValuesSource implementation and it will be used by the FilterScorer of Fu

How can I use FunctionScoreQuery to replace CustomScoreQuery?

2019-01-26 Thread MarcoR
Hi, Based on everything I read so far, FunctionScoreQuery is the way forward for boosting. My problem is, even though CustomScoreQuery's documentation suggests that FunctionScoreQuery should be used instead, I cannot find a way to use FunctionScoreQuery in the same way I can use CustomScoreQuer