I was wondering if there is a way to query a Lucy index using regular
expressions.

For example: The command `grep -i -P '65\d\s+Security' | grep -v -i -P
'(?:654|656|650|652)\s+Security'` will search for "65" followed by 1 digit
followed by any number of spaces followed by "Security" ignoring "654" "656"
"650" "652". So potential results are something like this:

"stuff here 651 Security and more stuff"
"stuff here 653 Security and more stuff"
"stuff here 655                        Security and more stuff"

but it will not return any of the below:

"stuff here 651 not followed by Security and more stuff"
"stuff here 653 not followed by Security and more stuff"

Another example is searching for an ip with `?:\d{1,3}\.){3}\d{1,3}`

Is there anyway to accomplish this with the existing api? 
are there any plans to support this? 
If not fully supported what is supported? 
If not supported at all what approach should I take to create something like
this? (create something that converts regex to a bunch of ORQueries etc?)



--
View this message in context: 
http://lucene.472066.n3.nabble.com/Lucy-Search-RegexQuery-tp4107329.html
Sent from the lucy-user mailing list archive at Nabble.com.

Reply via email to