flaxsearch / luwak

A java library for stored queries
Other
374 stars 82 forks source link

Range Queries are not working #159

Open mithranalandur opened 6 years ago

mithranalandur commented 6 years ago

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.

romseygeek commented 6 years ago

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.

ZronekM commented 1 year ago

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