You don't need to rewrite queries, its automatically done inside Lucene's
search logic, just run the query with IndexSearcher.search. To what Lucene
rewrites queries is internal and can change at any time.
So what is the problem?
--
Uwe Schindler
H.-H.-Meier-Allee 63, 28213 Bremen
http://www.the
Thanks Ian for your answer. I'm using lucene 3.5. Let me say from the
beginning :
I've written a MyParser class which extends MultiFieldQueryParser. And then
override the getRangeQuery method. In this method I call
NumericRangeQuery.newIntRange for receiving the query.
Then in my main method, I ha
Do you mean NumericRangeQuery or a textual range query that happens to
be searching on numbers?
What exactly is wrong?
The rewrite method (are you calling this yourself? why?) does indeed
mess around with queries and some may end up wrapped with
ConstantScoreQuery. I can't remember what happens
Hi all.
I'm searching numericRangeQuery in my indexes. (i.e. field : [10 TO 20])
In some ranges when I rewrite the query, I receive something wrong in the
answer. something like this : ConstantSocre(field : `
When I expand the range, then everything is OK. I debug the code and this
wrong answer