Re: How to search for terms containing negation

2014-03-18 Thread Jack Krupansky
Of course - you need to use the same analyzer for both indexing and query. So, just reindex your data with this new analyzer. -- Jack Krupansky -Original Message- From: Natalia Connolly Sent: Tuesday, March 18, 2014 10:37 AM To: java-user@lucene.apache.org Subject: Re: How to search f

Re: How to search for terms containing negation

2014-03-18 Thread Natalia Connolly
I am afraid this did not work, Tri. Here's what I tried: List words = new ArrayList(); Boolean ignoreCase = true; CharArraySet emptyset = new CharArraySet(Version.LUCENE_47,words,ignoreCase); Analyzer analyzer = new StandardAnalyzer(Version.LUCENE_47,emptyset); Here's what happens: Searching fo