On 08/21/2013 08:38 AM, Ankit Murarka wrote: > Hello. > I tried with > > doc.add(new Field("contents",line,Field.Store.YES,Field.Index.ANALYZED)); > > The BooleanQuery/PrefixMatch/WildCard all started Running fine.. > > But it broke the Existing code for Phrase Suggestion/InfixSuggester. Now > these suggesters are returning Word suggestion instead of Phrase Suggestion > which is not serving any purpose. > > THIS IS NOT DESIRABLE.. > > My PhraseSuggestion/InfixSuggestion etc. is now not working fine. Please > guide.. This is complete blocker.
I do not know how PhraseSuggestion/InfixSuggestion work, but, assuming there is no better solution, you could try indexing both a Field and a StringField (with different field names) and using the first for searching and the second for suggestions. -- Roberto Ragusa mail at robertoragusa.it --------------------------------------------------------------------- To unsubscribe, e-mail: java-user-unsubscr...@lucene.apache.org For additional commands, e-mail: java-user-h...@lucene.apache.org