#594 - ElasticSearch - multi match support

This commit is contained in:
Robin Bygrave
2016-03-09 23:44:23 +13:00
parent 34dcc98908
commit faf7df1c69
12 changed files with 524 additions and 95 deletions
@@ -1,6 +1,7 @@
package com.avaje.ebean;
import com.avaje.ebean.search.Match;
import com.avaje.ebean.search.MultiMatch;
import java.util.Collection;
import java.util.List;
@@ -292,6 +293,11 @@ public interface ExpressionFactory {
*/
Expression textMatch(String propertyName, String search, Match options);
/**
* Create a Text Multi match expression (currently doc store/Elastic only).
*/
Expression textMultiMatch(String query, MultiMatch options);
/**
* And - join two expressions with a logical and.
*/
@@ -334,4 +340,5 @@ public interface ExpressionFactory {
* </p>
*/
<T> TextJunction<T> textJunction(Query<T> query, TextExpressionList<T> parent, TextJunction.Type type);
}