mirror of
https://github.com/ebean-orm/ebean.git
synced 2026-11-19 23:02:24 +00:00
#594 - ElasticSearch - Add match / TextExpression support (Full text search expression)
This commit is contained in:
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;
|
||||
|
||||
}
|
||||
Reference in new issue
Block a user