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

Key: CMP-553
Type: Improvement Improvement
Status: Closed Closed
Resolution: Fixed
Priority: Major Major
Assignee: Shay Banon
Reporter: Shay Banon
Votes: 0
Watchers: 0
Operations

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

Change the default query parser operator from OR to AND

Created: 25/Feb/08 03:57 PM   Updated: 01/Mar/08 05:51 PM
Component/s: Compass::Core
Affects Version/s: None
Fix Version/s: 2.0.0 M3


 Description  « Hide
It really makes much more sense to have the default operator be AND then OR. This means that when searching for "compass java", it will be "compass AND java" and not "compass OR java".

Naturally, this can be reverted back by setting the default operator on the query string. Part of this feature will be to add a global query parser property that will allow to globally change it back to OR.



 All   Comments   Change History      Sort Order: Ascending order - Click to sort in descending order
Shay Banon added a comment - 01/Mar/08 05:51 PM
The default operator when searching changed from OR to AND (which makes much more sense). Changing back to OR can be done by setting: compass.engine.queryParser.default.defaultOperator=OR.