Is there an effective way to handle alphanumeric ranges in lucene? Example ranges,
- 1 to 1 (includes 1A, 1B.. 1Z)
- 10A12 to 10A22 (includes 10A12, 10A13.. 120A22)
- 1 to 10 (includes 1A,1B..,2A,2B..,9Z,10) [Does not include 10A]
I have two approaches:
- Expand each range and index all possible values. I guess the unique values won't be huge.
- Index on low and high values. Then use range query. Not sure, how effective is range query on alphanumeric ranges
Need expert advice on this, please.