luwak icon indicating copy to clipboard operation
luwak copied to clipboard

Range Queries are not working

Open mithranalandur opened this issue 7 years ago • 2 comments

Hi I tried overriding getRangeQuery() but still having the same issue.

I tried debugging and i am seeing response as [query1,query3] instead of [query1]

The IndexSearcher query is "title:test1 __anytokenfield:ANYTOKEN" used inside the monitor query. i.e., QueryIndex.java line 110. instead of "title:test1 upvote:[12 TO 2147483647]"

I got [query1, query3] as response the complete code is at https://gist.github.com/mithranalandur/ce170ce287eca2a8f2cfaab6342068df

Can you give me some pointer like where am i going wrong.

mithranalandur avatar Dec 10 '17 02:12 mithranalandur

That's what I'd expect. The TermFilteredPresearcher doesn't know anything about point queries, so if it comes across a query that only contains a point range query, it will run it against all input documents.

The plan is at some point to implement a Points-aware presearcher that will use LongRange or DoubleRange to index exact point queries.

romseygeek avatar Dec 10 '17 09:12 romseygeek

Has this issue been resolved somehow? I am also currently struggling to make rangequeries for the presearcher

ZronekM avatar Jan 26 '23 08:01 ZronekM