Reputation: 87
Is there an effective way to handle alphanumeric ranges in lucene? Example ranges,
I have two approaches:
Need expert advice on this, please.
Upvotes: 0
Views: 261
Reputation: 26703
I hope you agree that your defined rules are very customary and not really suitable for a generic framework, such as Lucene. For example, why would range [1..1]
include letters but [1..10]
wouldn't?
I don't know if it is possible with your data set, but if you could come up with rules, converting each element (including element having letters) into a unique number using some arbitrary formula, you could use this formula both when indexing and querying. This would even allow range matching.
Upvotes: 1