grob/lucindex — pull request #5 by kmfdm1 (2014-04-07 14:49:14+00:00)
Title: Got rid of createQuery and added QueryBuilder

createQuery alsways felt somewhat awkward and i changed the aproach to QueryBuilder programatically creating the query by using it's .should(name, qry), .must(name, qry), .not(name, qry) functions and finally calling getQuery() to get the constructed query. (i think this is what you suggested earlier to me)

QueryBuilder will return the same query-object as defined in a Field if only one condition is specified and the condition has been added with should, it will convert it to a BooleanQuery if more than one condition is used.

It is also possible to use should, must, not with arrays containing the queryconditions for the field passed as first argument.