SourceForge.net Logo
Main Overview Wiki Issues Forum Build Fisheye
Issue Details (XML | Word | Printable)

Key: CMP-656
Type: Improvement Improvement
Status: Closed Closed
Resolution: Fixed
Priority: Major Major
Assignee: Shay Banon
Reporter: Lauri
Votes: 1
Watchers: 2
Operations

If you were logged in you would be able to see more operations.
Compass

CompassQueryBuilder.CompassBooleanQueryBuilder to wrap BooleanQuery#setMaxClauseCount and BooleanQuery#getMaxClauseCount

Created: 18/Jun/08 02:45 AM   Updated: 09/Aug/08 01:01 PM
Component/s: None
Affects Version/s: None
Fix Version/s: 2.1.0 M3


 Description  « Hide
Lucene has a low default value for the boolean query's max clause count; only 1024 terms are allowed by default. This limit exists to limit the amount of memory used during a Lucene search.

As a Compass user I'd like to set the value without having to build a Lucene Query myself. CompassQueryBuilder.CompassBooleanQueryBuilder should have a method for doing this.



 All   Comments   Change History      Sort Order: Ascending order - Click to sort in descending order
James Carman added a comment - 09/Aug/08 10:19 AM
Is there any sort of work-around for this? My client needs to be able to paste in tens of thousands of search terms for our compass/lucene searches.

Shay Banon added a comment - 09/Aug/08 12:52 PM
You can call yourself BooleanQuery#setMaxClauseCount (its a static method) when you application starts.

Shay Banon added a comment - 09/Aug/08 01:01 PM
Now, it can be controlled using the following setting: compass.query.maxClauseCount.