#594 - ElasticSearch - Add match / TextExpression support (Full text search expression)

This commit is contained in:
Robin Bygrave committed 2016-03-09 21:48:22 +13:00
1 parent 3c63b79324
commit 34dcc98908
37 files changed
+860 -79

No files matched your search

@@ -509,6 +509,11 @@ public interface SpiQuery<T> extends Query<T> {
*/
SpiExpressionList<T> getHavingExpressions();
/**
* Return the text expressions.
*/
SpiExpressionList<T> getTextExpression();
/**
* Return additional having clause. Where raw String expressions are added
* to having clause rather than Expression objects.
@@ -0,0 +1,10 @@
package com.avaje.ebeaninternal.api;
import com.avaje.ebean.TextExpressionList;
/**
* SPI extensions to Full text expression list.
*/
public interface SpiTextExpressionList<T> extends TextExpressionList<T> {
}
@@ -0,0 +1,18 @@
package com.avaje.ebeaninternal.api;
import com.avaje.ebean.TextJunction;
import com.avaje.ebeaninternal.server.expression.DocQueryContext;
import java.io.IOException;
/**
* SPI extension to the full text junctions (MUST, MUST NOT, SHOULD).
*/
public interface SpiTextJunction<T> extends TextJunction<T> {
/**
* Write the junction expression to the query context.
*/
void writeDocQueryJunction(DocQueryContext context) throws IOException;
}