I have not tokenized phrases in index. What query should I use? Simple TermQuery does not work. If I try to use QueryParser , what analyzer should I use?
Daniel Naber-10 wrote: > > On Montag, 14. April 2008, palexv wrote: > >> For example I need to search for "java de*" and recieve "java >> developers", "java development", "developed by java" etc. > > If your text is tokenized, this is not supported by QueryParser but you > can > create such queries using MultiPhraseQuery. If you don't tokenize a text > like "java development" at whitespace characters, it's just like a single > term for Lucene. A query like "java de*" should work then, just make sure > you don't tokenize the search query either. > > Regards > Daniel > > -- > http://www.danielnaber.de > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > > -- View this message in context: http://www.nabble.com/Search-for-phrases-tp16678104p16695864.html Sent from the Lucene - Java Users mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]