lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From d33mb33 <>
Subject Re: Post processing to get around TooManyClauses?
Date Tue, 11 Dec 2007 13:17:36 GMT

Ok I'm still struggling with this and a QueryFilter didn't help me one bit

I'm trying to query for books by "Charles Dickens" that start with "m".  I
have constructed a QueryFilter for the author search and a PrefixQuery for
the title search.  A simplified version of my code is below.

    ' Charles Dickens query filter
    Dim authorQry As TermQuery = New TermQuery(New Term("ContributorName",
    Dim authorFlter As QueryFilter = New QueryFilter(authorQry)

    ' M* query
    Dim titleQry As PrefixQuery = New PrefixQuery(New Term("Title", "m"))

    Dim topDocs As TopDocs = GetIndexSearcher().Search(titleQry,
authorFlter, maxResults)

This still throws a TooManyClauses exception because the PrefixQuery is
being expanded across the entire index.  
View this message in context:
Sent from the Lucene - Java Users mailing list archive at

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message