hi,

I have a question ... I need to be able to filter a search using a regex. I cannot used facet as the filtering is pretty complex (but easy to perform
using a regex).
For instance I have stored in the field ID the value 12G and I want to
basically filter out all the results that are > 12 with G so for instance
14G will match but 8G and 14B would not. Using a regex this is simply
"[1-9]+[3-9]G" ..
i am wondering what the right approach is to tackle such a situation ..
thanks.
regex match is only useful when you first select a prefix, wich is a basic lucene feature : put the pointer just up to the first term begining with "toto".
Your query don't have any prefix.
What happen if you split your data in two field "12" and "G", "14" and "B", or, better, if it's number, "12G" can be indexed as "12000000"?
M.

Reply via email to