mirror of
https://github.com/ebean-orm/ebean.git
synced 2026-11-18 14:58:47 +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
@@ -158,6 +158,8 @@ public class DefaultOrmQuery<T> implements SpiQuery<T> {
|
||||
*/
|
||||
private BindParams bindParams;
|
||||
|
||||
private DefaultExpressionList<T> textExpressions;
|
||||
|
||||
private DefaultExpressionList<T> whereExpressions;
|
||||
|
||||
private DefaultExpressionList<T> havingExpressions;
|
||||
@@ -1313,6 +1315,15 @@ public class DefaultOrmQuery<T> implements SpiQuery<T> {
|
||||
return this;
|
||||
}
|
||||
|
||||
@Override
|
||||
public TextExpressionList text() {
|
||||
if (textExpressions == null) {
|
||||
useDocStore = true;
|
||||
textExpressions = new DefaultExpressionList<T>(this);
|
||||
}
|
||||
return textExpressions;
|
||||
}
|
||||
|
||||
public ExpressionList<T> where() {
|
||||
if (whereExpressions == null) {
|
||||
whereExpressions = new DefaultExpressionList<T>(this, null);
|
||||
@@ -1352,6 +1363,11 @@ public class DefaultOrmQuery<T> implements SpiQuery<T> {
|
||||
return whereExpressions;
|
||||
}
|
||||
|
||||
@Override
|
||||
public SpiExpressionList<T> getTextExpression() {
|
||||
return textExpressions;
|
||||
}
|
||||
|
||||
public String getGeneratedSql() {
|
||||
return generatedSql;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user