hibernate/hibernate-search — pull request #466 by gsmet (2013-08-08 14:57:42+00:00)
Title: HSEARCH-917 Add match all terms option when matching in the DSL API

Here we go for HSEARCH-917...

I had to radically change the way the query is built as it's necessary to be far more cautious when we build a AND query: if an analyzer returns several tokens (typically with the synonym filter), we need to build a OR query with the synonyms.

I based this work on what is done in the QueryParser of Lucene 4.4.0 (the QueryParser of Lucene 3.6.2 doesn't handle this case).

Happy to discuss it!