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: ignore a match in a query Maybe you can use the phrase search like: NOT "\"Record type\"" On 7/23/15, 12:53 PM, "Fielder, Todd Patrick" <tpfi...@sandia.gov> 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 not want the text "record type" to match, so searching for the >text "record" should return string 1 and not string 2. I can't say >"NOT Record Type" because then neither string would match > >Thanks > >-Todd --------------------------------------------------------------------- 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