Re: Multi-IDF for a single term possible?

2019-12-04 Thread Ravikumar Govindarajan
Thanks Ameer! Was thinking about few ideas. Thought something like tapping into Codec extension to store multi-IDF values in 2 files, namely an IDF Meta-file & a IDF Data-file IDF Meta-file holds List of {UserId, Terms-Data-File-Offset} pairs for each Term, encoded via ForUtil. IDF Data-file

Re: Need suggestions on implementing a custom query (offload R-tree filter to fully in-memory) on Lucene-8.3

2019-12-04 Thread 小鱼儿
Hi, adrien As to my native impl. which combines inverted index and R-tree distance query(index data is fully loaded into memory), i use a bound box to do filter and then use concise "contains" check to filter, so they are both "distance query" (or i call it "point nearby query") I have

Re: Need suggestions on implementing a custom query (offload R-tree filter to fully in-memory) on Lucene-8.3

2019-12-04 Thread Adrien Grand
Are you sure you are comparing apples to apples? The first paragraph mentions a range filter, which would be LatLonPoint#newBoxQuery, but then you mentioned LatLonPoint#newDistanceQuery, which is significantly more costly due to the need to compute distances. If you plan to combine text queries