lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Erick Erickson" <erickerick...@gmail.com>
Subject Re: Post processing to get around TooManyClauses?
Date Fri, 07 Dec 2007 17:43:48 GMT
I was thinking that you'd assemble a BooleanQuery, perhaps with phrase
queries, perhaps not. The critical thing here is to add in a BooleanClause
that included your filter on the relevant field (s).

Erick

On Dec 7, 2007 9:57 AM, d33mb33 <david.balzan@entity.co.uk> wrote:

>
>
> Erick Erickson wrote:
> >
> > Have you looked at Filters? Essentially, you construct a bitmap where
> each
> > bit corresponds to a document and pass that along into your search.
> > Constructing a filter is surprisingly speedy.
> >
>
> Thanks for the reply.. I'll take a look at filters.
>
> So in my "Charles Dickens starting with m" use case, should I make a
> filter
> for "Charles Dickens" and then do a prefix query on title passing "m"...?
>
> i.e. rewrite the quick query as a filter so the prefix and wildcard
> queries
> work against a smaller index.
>
> Or have I got this the wrong way around :-S
>
> --
> View this message in context:
> http://www.nabble.com/Post-processing-to-get-around-TooManyClauses--tf4961564.html#a14213935
> Sent from the Lucene - Java Users mailing list archive at Nabble.com.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org
> For additional commands, e-mail: java-user-help@lucene.apache.org
>
>

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