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: wildcards and spans
Date Wed, 02 Aug 2006 18:17:19 GMT
I'm almost entirely certain that any value I choose for setMaxClauseCount is
going to be wrong, but I might give it a try.

Erick

On 8/2/06, Paul Elschot <paul.elschot@xs4all.nl> wrote:
>
> On Wednesday 02 August 2006 17:29, Erick Erickson wrote:
> > I'm back, with another flavor of wildcards. What direction would you
> point a
> > poor boy who's project lead wants wildcard queries and spans? Here's the
> > problem....
> >
> > I cannot use any of the classes that throw a "TooManyClauses" exception
> (e.g.
> > SpanRegexQuery or SpanNearQuery with, say WildCardQuery). The corpus is
> big
> > enough that this is guaranteed to be thrown. So, currently I'm using a
> > filter for wildcard queries, populating it via WildcardTermEnum and
> > TermDocs... Works like a champ. But I don't see how to combine this with
> > spans...
>
> You can try BooleanQuery.setMaxClauseCount() to  increase the max. nr. of
> clauses to 100000 or so and see what happens when searching.
> With enough RAM it should work nicely.
>
> You could also use the surround query language. This allows to set
> the max. nr. of clauses for a whole query instead of per BooleanQuery.
>
> Regards,
> Paul Elschot
>
> ---------------------------------------------------------------------
> 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