The idea is to be able to write something like this:
List<String> titles = new ArrayList<>();
titles.add("Test1");
titles.add("Test2");
titles.add("Test2");
Query titleQuery = builder.keyword().withConstantScore().onField("title").matchingAny( titles )).createQuery();
FullTextQuery ftq = fullTextSession.createFullTextQuery(titleQuery);
This would translate to something like (title:Test1 title:Test2). Currently, users have to write a boolean junction by hand, which is a bit verbose. We could also have a matchingAll method, which would create an AND instead of an OR: (+title:Test1 +title:Test2). It would be useful mainly for multi-valued fields or analyzed text fields. |