Hi David,

SpanRegexQuery may help - see my response on a similar thread below:

<http://www.nabble.com/Query-to-ignore-certain-phrases-td18935560.html#a18946729>

Steve

On 12/11/2008 at 11:59 AM, David Kaelbling wrote:
> Thanks!  But not quite -- that query doesn't hit on a document that
> contains: 
>       copyright 2008 mycompany 
>       blah blah blah blah
>       copyright 2008 yourcompany
> 
> - David
> 
> On Thu, 2008-12-11 at 11:33 -0500, Yonik Seeley wrote:
> > On Thu, Dec 11, 2008 at 11:24 AM, David Kaelbling
> > <[EMAIL PROTECTED]> wrote:
> > > Will https://issues.apache.org/jira/browse/LUCENE-1486 let people
> > > include NOT inside phrases?  My customers would like to have queries
> > > like "copyright !mycompany"~2, that find any copyright clause except
> > > their own.
> > 
> > MultiPhraseQuery doesn't have that capability, but you could easily
> > handle this specific query with
> > copyright -"copyright mycompany"~2
> > 
> > -Yonik
> 
> --
> David Kaelbling
> Senior Software Engineer
> Black Duck Software, Inc.
> 
> [EMAIL PROTECTED]
> T +1.781.810.2041
> F +1.781.891.5145
> 
> http://www.blackducksoftware.com

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to