Re: Search for phrases

2008-04-15 Thread Daniel Naber
On Dienstag, 15. April 2008, palexv wrote: > I have not tokenized phrases in index. > What query should I use? > Simple TermQuery does not work. Probably PhraseQuery with an argument like "java dev" (no asterisk). > If I try to use QueryParser , what analyzer should I use? Probably KeywordAnaly

Re: Search for phrases

2008-04-15 Thread Erick Erickson
It would help a lot if you provided a couple of examples of inputs into your index and expected outputs for queries. For instance, you say: <<>> But then in your follow-up you say <<>> Well, if you haven't tokenized your input streams at index time and query time, you can't get what your first s

Re: Search for phrases

2008-04-14 Thread palexv
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 >> d

Re: Search for phrases

2008-04-14 Thread Daniel Naber
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'