That worked great! Thanks Daniel.

I just have one more use case. I want the same prefix search as before, plus
another match in another field.

I was using MultiFieldQueryParser.parse(), but then I have the same problem
with the "One Tw*" query, cause MultiFieldQueryParser.parse() returns a
BooleanQuery.

Thanks again,


Andre

On Tue, Aug 26, 2008 at 2:37 AM, Daniel Naber <[EMAIL PROTECTED]
> wrote:

> On Dienstag, 26. August 2008, Andre Rubin wrote:
>
> > For some reason, the TermQuery is not returning any results, even when
> > querying for a single word (like on*).
>
> Sorry, I meant PrefixQuery. Also, do not add the "*" to the search string
> when creating the PrefixQuery.
>
> Regards
>  Daniel
>
> --
> http://www.danielnaber.de
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>

Reply via email to