Re: Using PerFieldAnalyzerWrapper with KeywordAnalyzer - MultiFieldQueryParser

2009-01-13 Thread Erick Erickson
Are you sure that you close the IndexWriter *before* you open your _Searcher in your program (it kinda looks like a test program is why I'm asking). If the above is OK, I'd really recommend getting a copy of Luke, writing your index to a FSDirectory and looking at it with Luke. Barring all that,

Using PerFieldAnalyzerWrapper with KeywordAnalyzer - MultiFieldQueryParser

2009-01-12 Thread Michael Nguyen
Hi all, I encountered the following problem with the searching the exact text. This is how I index: ... document.Add(new Field("keyword", "hello world", Field.Store.YES, Field.Index.UN_TOKENIZED)); This is how I try to search for "hello world" string[] fields = new string[] { "name", "keywo