mirror of
https://github.com/ebean-orm/ebean.git
synced 2024-04-21 10:51:47 +00:00
#594 - ElasticSearch - Add support for TextSimple, TextQueryString and TextCommon full text search expressions
This commit is contained in:
@@ -0,0 +1,27 @@
|
||||
package com.avaje.ebeaninternal.server.expression;
|
||||
|
||||
import com.avaje.ebean.search.TextSimple;
|
||||
|
||||
import java.io.IOException;
|
||||
|
||||
/**
|
||||
* Full text Multi-Match expression.
|
||||
*/
|
||||
class TextSimpleExpression extends AbstractTextExpression {
|
||||
|
||||
private final String search;
|
||||
|
||||
private final TextSimple options;
|
||||
|
||||
public TextSimpleExpression(String search, TextSimple options) {
|
||||
super(null);
|
||||
this.search = search;
|
||||
this.options = options;
|
||||
}
|
||||
|
||||
@Override
|
||||
public void writeDocQuery(DocQueryContext context) throws IOException {
|
||||
context.writeTextSimple(search, options);
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user