solr Boolean search


Example

+firstname:john +surname:doe

Matches documents where firstname is john and surname is doe. + predix indicates that the search term must occur (AND).

+firstname:john -surname:doe

Matches documents where firstname is john and surname is not doe. - predix indicates that the search term must not occur (NOT).

+firstname:john surname:(doe bloggs)

Matches documents where firstname is john and surname is either doe or bloggs. No prefix indicates that the surname should occur (OR)