weavejester / clucy

Clojure interface to Lucene
Eclipse Public License 1.0
172 stars 58 forks source link

default-operator support for search function #9

Closed scusack closed 12 years ago

scusack commented 12 years ago

Hi,

A project I'm working on needs be able to change the default operator to an AND.

I've added an extra keyword argument and some tests to support setting the default operator on the QueryParser.

If :default-operator is not supplied then the default of OR is used, if it is supplied then it must be either :and or :or otherwise it'll cause problems for the case statement.

I've found clucy very useful, thanks.

-- sim

weavejester commented 12 years ago

This seems a reasonable addition, and the code checks out.