Intersecting boundaries with lucene
- by Silvio Donnini
I'm using Lucene, and I'm trying to find a way to index and retrieve documents that have a ranged property.
For example I have:
Document 1: Price:[30 TO 50]
Document 2: Price:[45 TO 60]
Document 3: Price:[60 TO 70]
And I would like to search for all the documents whose ranges intersect a specific interval, in the above example, if I search for…