propagate payload byte[] until collector collect ?

2011-08-22 Thread ac
hi , What is the correct way to propagate the payload byte array at collector collecting time ? Currently we are using a ThreadLocal object inside our Similarity subclass (during scoring payload) to keep the reference of the current payload. Then we retrieve the payload byte array at collecting tim

Incorrect search result with PhraseQuery

2009-05-25 Thread ac
hi, has anyone stumble across this problem where PhraseQuery leads to incorrect results? In my specific case PhraseQuery would become equivilent to a set of disjunctive term queries. However, upon restarting my application (inside tomcat) PhraseQuery would work again. The logic that produces query

CustomScoreQuery numerical precision problem

2009-05-18 Thread ac
hello, I am using CustomScoreQuery for result ranking. A field of my documents is parsable as an integer value, the magnide of which exceeds the precision of the float type. A sample value of this field is 24118569 However, due to the nature of CustomScoreQuery, a cast from int to float is perform