mirror of
https://github.com/ebean-orm/ebean.git
synced 2026-11-19 23:02:24 +00:00
#594 - ElasticSearch - Add support for TextSimple, TextQueryString and TextCommon full text search expressions
This commit is contained in:
1 parent
75a84af3f8
commit
049bf76cc4
17 files changed
+994
-48
No files matched your search
+27
@@ -0,0 +1,27 @@
|
||||
package com.avaje.ebeaninternal.server.expression;
|
||||
|
||||
import com.avaje.ebean.search.TextQueryString;
|
||||
|
||||
import java.io.IOException;
|
||||
|
||||
/**
|
||||
* Full text query string expression.
|
||||
*/
|
||||
class TextQueryStringExpression extends AbstractTextExpression {
|
||||
|
||||
private final String search;
|
||||
|
||||
private final TextQueryString options;
|
||||
|
||||
public TextQueryStringExpression(String search, TextQueryString options) {
|
||||
super(null);
|
||||
this.search = search;
|
||||
this.options = options;
|
||||
}
|
||||
|
||||
@Override
|
||||
public void writeDocQuery(DocQueryContext context) throws IOException {
|
||||
context.writeTextQueryString(search, options);
|
||||
}
|
||||
|
||||
}
|
||||
Reference in new issue
Block a user