mirror of
https://github.com/ebean-orm/ebean.git
synced 2024-04-21 10:51:47 +00:00
28 lines
598 B
Java
28 lines
598 B
Java
package io.ebeaninternal.server.expression;
|
|
|
|
import io.ebean.search.TextCommonTerms;
|
|
|
|
import java.io.IOException;
|
|
|
|
/**
|
|
* Full text common terms expression.
|
|
*/
|
|
class TextCommonTermsExpression extends AbstractTextExpression {
|
|
|
|
private final String search;
|
|
|
|
private final TextCommonTerms options;
|
|
|
|
public TextCommonTermsExpression(String search, TextCommonTerms options) {
|
|
super(null);
|
|
this.search = search;
|
|
this.options = options;
|
|
}
|
|
|
|
@Override
|
|
public void writeDocQuery(DocQueryContext context) throws IOException {
|
|
context.writeTextCommonTerms(search, options);
|
|
}
|
|
|
|
}
|