Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: Lucene: General

Custom query syntax

 

 

Lucene general RSS feed   Index | Next | Previous | View Threaded


david.k.pham at gmail

Jun 4, 2009, 2:23 PM

Post #1 of 2 (315 views)
Permalink
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.


ted.dunning at gmail

Jun 4, 2009, 2:32 PM

Post #2 of 2 (280 views)
Permalink
Re: Custom query syntax [In reply to]

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 <david.k.pham[at]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)

Lucene general RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact lists@gossamer-threads.com
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.