RE: ignore a match in a query

2015-07-24 Thread Allison, Timothy B.
: Trejkaz [mailto:trej...@trypticon.org] Sent: Thursday, July 23, 2015 11:29 PM To: Lucene Users Mailing List Subject: Re: ignore a match in a query On Fri, Jul 24, 2015 at 2:53 AM, Fielder, Todd Patrick wrote: > Hi, > I'm wondering if there is a way to ignore a match in a query?

Re: ignore a match in a query

2015-07-23 Thread Trejkaz
On Fri, Jul 24, 2015 at 2:53 AM, Fielder, Todd Patrick wrote: > Hi, > I'm wondering if there is a way to ignore a match in a query? For example, I > have two strings > > 1) "Record type: record" > > 2) "Record type: cd" > > I do no

Re: [EXTERNAL] Re: ignore a match in a query

2015-07-23 Thread Xiaolong Zheng
ong.zh...@mathworks.com] >Sent: Thursday, July 23, 2015 11:45 AM >To: 'java-user@lucene.apache.org' >Subject: [EXTERNAL] Re: ignore a match in a query > >Maybe you can use the phrase search like: > > NOT "\"Record type\"" > > >On 7/23/1

RE: [EXTERNAL] Re: ignore a match in a query

2015-07-23 Thread Fielder, Todd Patrick
Unfortunately, that removes all records since all records have the term "Record type" -Original Message- From: Xiaolong Zheng [mailto:xiaolong.zh...@mathworks.com] Sent: Thursday, July 23, 2015 11:45 AM To: 'java-user@lucene.apache.org' Subject: [EXTERNAL] Re: ignor

Re: ignore a match in a query

2015-07-23 Thread Xiaolong Zheng
Maybe you can use the phrase search like: NOT "\"Record type\"" On 7/23/15, 12:53 PM, "Fielder, Todd Patrick" wrote: >Hi, >I'm wondering if there is a way to ignore a match in a query? For >example, I have two strings > >1) "

ignore a match in a query

2015-07-23 Thread Fielder, Todd Patrick
Hi, I'm wondering if there is a way to ignore a match in a query? For example, I have two strings 1) "Record type: record" 2) "Record type: cd" I do not want the text "record type" to match, so searching for the text "record" should r