lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Andre Rubin" <>
Subject Re: MultiPhrase search
Date Tue, 26 Aug 2008 16:49:26 GMT
Now I was the one who didn't follow: How do I add a query to an existing

Let me be more clear on my use case:

I have two documents:
label:One Two Three

label:One Two FOUR

I want to be able to make the same kind of search as you described earlier
using PrefixQuery, but I want to filter the results using the other field.
label:One Tw*

And I only want to get document 1 as result.

At first glance, it seems that your answer may fit, but I'm not sure what
you meant by adding another query to an existing query.

Thanks again,


On Tue, Aug 26, 2008 at 9:34 AM, Daniel Naber <
> wrote:

> On Dienstag, 26. August 2008, Andre Rubin wrote:
> > I just have one more use case. I want the same prefix search as before,
> > plus another match in another field.
> Not sure if I'm following you, but you can create your own BooleanQuery
> programmatically, and then add the original PrefixQuery and any other
> query, no matter if it's another BooleanQuery or if comes out of the
> QueryParser or is also built programmatically.
> Regards
>  Daniel
> --
> ---------------------------------------------------------------------
> To unsubscribe, e-mail:
> For additional commands, e-mail:

  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message