You are viewing a plain text version of this content. The canonical link for it is here.
Posted to general@lucene.apache.org by davidkpham <da...@gmail.com> on 2009/06/04 23:23:20 UTC

Custom query syntax

Hello everyone,

How does one go about creating a custom query analyzer? For example, I need
to change:

hello world --> hello && world
hello OR world -> hello || world
hello AND world -> hello && world
hello + world -> hello && world
hello ("Test" || "Place") -> hello && ("Test" || "Place")

Any help would be greatly appreciated.

Thank you,
David Pham
-- 
View this message in context: http://www.nabble.com/Custom-query-syntax-tp23878050p23878050.html
Sent from the Lucene - General mailing list archive at Nabble.com.


Re: Custom query syntax

Posted by Ted Dunning <te...@gmail.com>.
The IBM group have developed a very nice framework for this that is
available as a patch against 2.9 and will be revised shortly.

They described this at the Lucene meetup last night.

See https://issues.apache.org/jira/browse/LUCENE-1567

On Thu, Jun 4, 2009 at 2:23 PM, davidkpham <da...@gmail.com> wrote:

>
> Hello everyone,
>
> How does one go about creating a custom query analyzer? For example, I need
> to change:
>
> hello world --> hello && world
> hello OR world -> hello || world
> hello AND world -> hello && world
> hello + world -> hello && world
> hello ("Test" || "Place") -> hello && ("Test" || "Place")
>
> Any help would be greatly appreciated.
>
> Thank you,
> David Pham
> --
> View this message in context:
> http://www.nabble.com/Custom-query-syntax-tp23878050p23878050.html
> Sent from the Lucene - General mailing list archive at Nabble.com.
>
>


-- 
Ted Dunning, CTO
DeepDyve

111 West Evelyn Ave. Ste. 202
Sunnyvale, CA 94086
http://www.deepdyve.com
858-414-0013 (m)
408-773-0220 (fax)