Dear Lucene-developers, I switched to using Lucene 3.5 a few weeks ago and suddenly sentences are not correctly indexed anymore. Basically, fields can be correctly queried if they contain one term but if there are multiple terms, the analyzer fails (i use the latest Luke for testing).
So my query is: contains:foo it works on a document with field contains:foo but fails on contains:ba foo For indexing, this is how I start the writer KeywordAnalyzer analyzer = new KeywordAnalyzer(); Directory index = FSDirectory.open(output); IndexWriterConfig config = new IndexWriterConfig(Version.LUCENE_35, analyzer); IndexWriter writer = null; try { writer = new IndexWriter(index, config); } catch (IOException ex) { ex.printStackTrace(); } And the particular field is index like this: doc.add(new Field("contains", text.toLowerCase(), Field.Store.YES, Field.Index.ANALYZED)); Pretty rivial right? Worked fine for my old (2.9) index but fails for 3.5... am I missing a very important setting? Thanks in advance! EJ Blom -- View this message in context: http://lucene.472066.n3.nabble.com/LUCENE-35-index-keyword-analyzer-only-doesn-t-like-indexed-sentences-tp3663508p3663508.html Sent from the Lucene - Java Users mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe, e-mail: java-user-unsubscr...@lucene.apache.org For additional commands, e-mail: java-user-h...@lucene.apache.org