Re: Query behavior difference.

2016-01-06 Thread Emir Arnautovic
Hi Modassar, It usually helps if you analyze extreme case: e.g. fl:a* What terms should be better match? Those who are shorter or all should be equally good? What should be top document? Assuming standard TF/IDF scoring is used, that would be one with the most terms that start with 'a'

Re: Query behavior difference.

2016-01-06 Thread Modassar Ather
Please help me understand why queries like wildcard, prefix and few others are re-written into constant score query? Why the scoring factors are not taken into consideration in such queries? Please correct me if I am wrong that this behavior is per the query type irrespective of the parser used.

Re: Query behavior difference.

2016-01-06 Thread Jack Krupansky
The motivation for the constant-score rewrite is simply performance. As per the Javadoc: "*This method is faster than the BooleanQuery rewrite methods when the number of matched terms or matched documents is non-trivial. Also, it will never hit an errant BooleanQuery.TooManyClauses exception.*"

Re: Query behavior difference.

2016-01-06 Thread Modassar Ather
Thanks for your responses. Best, Modassar On Wed, Jan 6, 2016 at 9:27 PM, Jack Krupansky wrote: > The motivation for the constant-score rewrite is simply performance. As per > the Javadoc: > > "*This method is faster than the BooleanQuery rewrite methods when the >

Re: Query behavior difference.

2016-01-05 Thread Modassar Ather
Thanks for your response Ahmet. Best, Modassar On Mon, Jan 4, 2016 at 5:07 PM, Ahmet Arslan wrote: > Hi, > > I think wildcard queries fl:networ* are re-written into Constant Score > Query. > fl=*,score should returns same score for all documents that are retrieved. >

Re: Query behavior difference.

2016-01-04 Thread Ahmet Arslan
Hi, I think wildcard queries fl:networ* are re-written into Constant Score Query. fl=*,score should returns same score for all documents that are retrieved. Ahmet On Monday, January 4, 2016 12:22 PM, Modassar Ather wrote: Hi, Kindly help me understand how will