Hmmm - you can probably get qsol to do it: http://myhardshadow.com/qsol. I think you can setup any token to expand to anything with a regex matcher and use group capturing in the replacement (I don't fully remember though, been a while since I've used it).

So you could do a regex of something like : >=([0-9]+) and have it expand to [$1 rng Integer.Max] or something. Then handle the other cases.

You also might come up with your own regex that you could apply to the standard Lucene query parser syntax, and pre-process using the same strategy.


--
- Mark

http://www.lucidimagination.com




Michael McCandless wrote:

Allahbaksh Mohammedali Asadullah wrote:

For example I want to search amount >= 15 rather than doing it amount:[ 15] or something?

Is there any open source queryparser which converts something like amount >=15 into lucene number format query.

I don't know of any effort to change Lucene's queryParser syntax to support this, nor an an existing open-source package to do so, but patches are always welcome!

Mike

---------------------------------------------------------------------
To unsubscribe, e-mail: java-user-unsubscr...@lucene.apache.org
For additional commands, e-mail: java-user-h...@lucene.apache.org






---------------------------------------------------------------------
To unsubscribe, e-mail: java-user-unsubscr...@lucene.apache.org
For additional commands, e-mail: java-user-h...@lucene.apache.org

Reply via email to