Skip to content

Commit

Permalink
Merge pull request #590 from wtt40122/master
Browse files Browse the repository at this point in the history
es query and regex and like
  • Loading branch information
gaoxh authored Aug 23, 2023
2 parents a35661a + 0f96e06 commit 1160124
Show file tree
Hide file tree
Showing 13 changed files with 472 additions and 357 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ expr
| param GE value #GeExpr
| param NE value #NeExpr
| param EQ value #EqExpr
| param LIKE value #LikeExpr
| param CONTAIN value #ContainExpr
| param NOTCONTAIN value #NotContainExpr
| param IN array #InExpr
Expand Down Expand Up @@ -89,8 +90,8 @@ LT : '<';
GT : '>';
LE : '<=';
GE : '>=';
REG : '=~';
LIKE: 'LIKE';
REG : ':~';
LIKE: 'LIKE' | 'like';
IN : 'IN' | 'in';
NOT_IN : 'NOT_IN' | 'not_in';
EXIST : 'EXIST' | 'exist';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
import org.antlr.v4.runtime.tree.ParseTree;
import org.antlr.v4.runtime.tree.ParseTreeProperty;
import org.antlr.v4.runtime.tree.TerminalNode;
import org.elasticsearch.common.unit.Fuzziness;
import org.elasticsearch.index.query.BoolQueryBuilder;
import org.elasticsearch.index.query.QueryBuilder;
import org.elasticsearch.index.query.QueryBuilders;
Expand Down Expand Up @@ -228,6 +229,20 @@ public void exitEqExpr(EsQueryParser.EqExprContext ctx) {
treeProperty.put(ctx, builder);
}

@Override
public void enterLikeExpr(EsQueryParser.LikeExprContext ctx) {

}

@Override
public void exitLikeExpr(EsQueryParser.LikeExprContext ctx) {
String param = ctx.getChild(0).getText();
String value = valueProperty.get(ctx.getChild(2)).getValue().toString();
SearchSourceBuilder sourceBuilder = new SearchSourceBuilder()
.query(new BoolQueryBuilder().must(QueryBuilders.fuzzyQuery(param, value).fuzziness(Fuzziness.AUTO)));
treeProperty.put(ctx, sourceBuilder);
}

@Override
public void enterContainExpr(EsQueryParser.ContainExprContext ctx) {

Expand Down
Original file line number Diff line number Diff line change
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, 5, 1, 5, 1, 5, 1, 5, 1, 5, 3, 5, 155, 8, 5, 1, 6, 1, 6, 1, 7, 1, 7, 1, 7, 1, 7, 1, 7, 1, 7, 1, 7, 1, 7, 3, 7, 167, 8, 7, 1, 8, 1, 8, 1, 8, 0, 1, 2, 9, 0, 2, 4, 6, 8, 10, 12, 14, 16, 0, 0, 197, 0, 18, 1, 0, 0, 0, 2, 30, 1, 0, 0, 0, 4, 101, 1, 0, 0, 0, 6, 116, 1, 0, 0, 0, 8, 138, 1, 0, 0, 0, 10, 154, 1, 0, 0, 0, 12, 156, 1, 0, 0, 0, 14, 166, 1, 0, 0, 0, 16, 168, 1, 0, 0, 0, 18, 19, 3, 2, 1, 0, 19, 20, 5, 0, 0, 1, 20, 1, 1, 0, 0, 0, 21, 22, 6, 1, -1, 0, 22, 23, 5, 1, 0, 0, 23, 24, 3, 2, 1, 0, 24, 25, 5, 2, 0, 0, 25, 31, 1, 0, 0, 0, 26, 31, 3, 8, 4, 0, 27, 28, 5, 26, 0, 0, 28, 31, 3, 2, 1, 3, 29, 31, 3, 4, 2, 0, 30, 21, 1, 0, 0, 0, 30, 26, 1, 0, 0, 0, 30, 27, 1, 0, 0, 0, 30, 29, 1, 0, 0, 0, 31, 46, 1, 0, 0, 0, 32, 33, 10, 6, 0, 0, 33, 34, 5, 12, 0, 0, 34, 45, 3, 2, 1, 7, 35, 36, 10, 5, 0, 0, 36, 37, 5, 12, 0, 0, 37, 45, 3, 2, 1, 6, 38, 39, 10, 4, 0, 0, 39, 40, 5, 13, 0, 0, 40, 45, 3, 2, 1, 5, 41, 42, 10, 2, 0, 0, 42, 43, 5, 26, 0, 0, 43, 45, 3, 2, 1, 3, 44, 32, 1, 0, 0, 0, 44, 35, 1, 0, 0, 0, 44, 38, 1, 0, 0, 0, 44, 41, 1, 0, 0, 0, 45, 48, 1, 0, 0, 0, 46, 44, 1, 0, 0, 0, 46, 47, 1, 0, 0, 0, 47, 3, 1, 0, 0, 0, 48, 46, 1, 0, 0, 0, 49, 50, 3, 12, 6, 0, 50, 51, 5, 16, 0, 0, 51, 52, 3, 14, 7, 0, 52, 102, 1, 0, 0, 0, 53, 54, 3, 12, 6, 0, 54, 55, 5, 17, 0, 0, 55, 56, 3, 14, 7, 0, 56, 102, 1, 0, 0, 0, 57, 58, 3, 12, 6, 0, 58, 59, 5, 18, 0, 0, 59, 60, 3, 14, 7, 0, 60, 102, 1, 0, 0, 0, 61, 62, 3, 12, 6, 0, 62, 63, 5, 19, 0, 0, 63, 64, 3, 14, 7, 0, 64, 102, 1, 0, 0, 0, 65, 66, 3, 12, 6, 0, 66, 67, 5, 15, 0, 0, 67, 68, 3, 14, 7, 0, 68, 102, 1, 0, 0, 0, 69, 70, 3, 12, 6, 0, 70, 71, 5, 14, 0, 0, 71, 72, 3, 14, 7, 0, 72, 102, 1, 0, 0, 0, 73, 74, 3, 12, 6, 0, 74, 75, 5, 28, 0, 0, 75, 76, 3, 14, 7, 0, 76, 102, 1, 0, 0, 0, 77, 78, 3, 12, 6, 0, 78, 79, 5, 29, 0, 0, 79, 80, 3, 14, 7, 0, 80, 102, 1, 0, 0, 0, 81, 82, 3, 12, 6, 0, 82, 83, 5, 22, 0, 0, 83, 84, 3, 6, 3, 0, 84, 102, 1, 0, 0, 0, 85, 86, 3, 12, 6, 0, 86, 87, 5, 23, 0, 0, 87, 88, 3, 6, 3, 0, 88, 102, 1, 0, 0, 0, 89, 90, 3, 12, 6, 0, 90, 91, 5, 24, 0, 0, 91, 102, 1, 0, 0, 0, 92, 93, 3, 12, 6, 0, 93, 94, 5, 25, 0, 0, 94, 102, 1, 0, 0, 0, 95, 96, 3, 12, 6, 0, 96, 97, 5, 20, 0, 0, 97, 98, 3, 16, 8, 0, 98, 102, 1, 0, 0, 0, 99, 102, 3, 12, 6, 0, 100, 102, 3, 14, 7, 0, 101, 49, 1, 0, 0, 0, 101, 53, 1, 0, 0, 0, 101, 57, 1, 0, 0, 0, 101, 61, 1, 0, 0, 0, 101, 65, 1, 0, 0, 0, 101, 69, 1, 0, 0, 0, 101, 73, 1, 0, 0, 0, 101, 77, 1, 0, 0, 0, 101, 81, 1, 0, 0, 0, 101, 85, 1, 0, 0, 0, 101, 89, 1, 0, 0, 0, 101, 92, 1, 0, 0, 0, 101, 95, 1, 0, 0, 0, 101, 99, 1, 0, 0, 0, 101, 100, 1, 0, 0, 0, 102, 5, 1, 0, 0, 0, 103, 104, 5, 3, 0, 0, 104, 117, 5, 4, 0, 0, 105, 106, 5, 3, 0, 0, 106, 111, 3, 14, 7, 0, 107, 108, 5, 5, 0, 0, 108, 110, 3, 14, 7, 0, 109, 107, 1, 0, 0, 0, 110, 113, 1, 0, 0, 0, 111, 109, 1, 0, 0, 0, 111, 112, 1, 0, 0, 0, 112, 114, 1, 0, 0, 0, 113, 111, 1, 0, 0, 0, 114, 115, 5, 4, 0, 0, 115, 117, 1, 0, 0, 0, 116, 103, 1, 0, 0, 0, 116, 105, 1, 0, 0, 0, 117, 7, 1, 0, 0, 0, 118, 119, 3, 12, 6, 0, 119, 120, 5, 27, 0, 0, 120, 121, 5, 30, 0, 0, 121, 122, 3, 10, 5, 0, 122, 139, 1, 0, 0, 0, 123, 124, 3, 12, 6, 0, 124, 125, 5, 27, 0, 0, 125, 126, 5, 31, 0, 0, 126, 127, 3, 10, 5, 0, 127, 139, 1, 0, 0, 0, 128, 129, 3, 12, 6, 0, 129, 130, 5, 27, 0, 0, 130, 131, 5, 33, 0, 0, 131, 132, 3, 10, 5, 0, 132, 139, 1, 0, 0, 0, 133, 134, 3, 12, 6, 0, 134, 135, 5, 27, 0, 0, 135, 136, 5, 34, 0, 0, 136, 137, 3, 10, 5, 0, 137, 139, 1, 0, 0, 0, 138, 118, 1, 0, 0, 0, 138, 123, 1, 0, 0, 0, 138, 128, 1, 0, 0, 0, 138, 133, 1, 0, 0, 0, 139, 9, 1, 0, 0, 0, 140, 141, 5, 1, 0, 0, 141, 155, 5, 2, 0, 0, 142, 143, 5, 1, 0, 0, 143, 144, 3, 8, 4, 0, 144, 145, 5, 2, 0, 0, 145, 155, 1, 0, 0, 0, 146, 147, 5, 1, 0, 0, 147, 148, 3, 2, 1, 0, 148, 149, 5, 2, 0, 0, 149, 155, 1, 0, 0, 0, 150, 151, 5, 1, 0, 0, 151, 152, 3, 14, 7, 0, 152, 153, 5, 2, 0, 0, 153, 155, 1, 0, 0, 0, 154, 140, 1, 0, 0, 0, 154, 142, 1, 0, 0, 0, 154, 146, 1, 0, 0, 0, 154, 150, 1, 0, 0, 0, 155, 11, 1, 0, 0, 0, 156, 157, 5, 35, 0, 0, 157, 13, 1, 0, 0, 0, 158, 167, 5, 9, 0, 0, 159, 167, 5, 10, 0, 0, 160, 167, 5, 37, 0, 0, 161, 167, 5, 36, 0, 0, 162, 167, 5, 6, 0, 0, 163, 167, 5, 7, 0, 0, 164, 167, 5, 8, 0, 0, 165, 167, 5, 35, 0, 0, 166, 158, 1, 0, 0, 0, 166, 159, 1, 0, 0, 0, 166, 160, 1, 0, 0, 0, 166, 161, 1, 0, 0, 0, 166, 162, 1, 0, 0, 0, 166, 163, 1, 0, 0, 0, 166, 164, 1, 0, 0, 0, 166, 165, 1, 0, 0, 0, 167, 15, 1, 0, 0, 0, 168, 169, 5, 11, 0, 0, 169, 17, 1, 0, 0, 0, 9, 30, 44, 46, 101, 111, 116, 138, 154, 166]
[4, 1, 39, 175, 2, 0, 7, 0, 2, 1, 7, 1, 2, 2, 7, 2, 2, 3, 7, 3, 2, 4, 7, 4, 2, 5, 7, 5, 2, 6, 7, 6, 2, 7, 7, 7, 2, 8, 7, 8, 1, 0, 1, 0, 1, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 3, 1, 31, 8, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 5, 1, 45, 8, 1, 10, 1, 12, 1, 48, 9, 1, 1, 2, 1, 2, 1, 2, 1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 22, 6, 1, -1, 0, 22, 23, 5, 1, 0, 0, 23, 24, 3, 2, 1, 0, 24, 25, 5, 2, 0, 0, 25, 31, 1, 0, 0, 0, 26, 31, 3, 8, 4, 0, 27, 28, 5, 26, 0, 0, 28, 31, 3, 2, 1, 3, 29, 31, 3, 4, 2, 0, 30, 21, 1, 0, 0, 0, 30, 26, 1, 0, 0, 0, 30, 27, 1, 0, 0, 0, 30, 29, 1, 0, 0, 0, 31, 46, 1, 0, 0, 0, 32, 33, 10, 6, 0, 0, 33, 34, 5, 12, 0, 0, 34, 45, 3, 2, 1, 7, 35, 36, 10, 5, 0, 0, 36, 37, 5, 12, 0, 0, 37, 45, 3, 2, 1, 6, 38, 39, 10, 4, 0, 0, 39, 40, 5, 13, 0, 0, 40, 45, 3, 2, 1, 5, 41, 42, 10, 2, 0, 0, 42, 43, 5, 26, 0, 0, 43, 45, 3, 2, 1, 3, 44, 32, 1, 0, 0, 0, 44, 35, 1, 0, 0, 0, 44, 38, 1, 0, 0, 0, 44, 41, 1, 0, 0, 0, 45, 48, 1, 0, 0, 0, 46, 44, 1, 0, 0, 0, 46, 47, 1, 0, 0, 0, 47, 3, 1, 0, 0, 0, 48, 46, 1, 0, 0, 0, 49, 50, 3, 12, 6, 0, 50, 51, 5, 16, 0, 0, 51, 52, 3, 14, 7, 0, 52, 106, 1, 0, 0, 0, 53, 54, 3, 12, 6, 0, 54, 55, 5, 17, 0, 0, 55, 56, 3, 14, 7, 0, 56, 106, 1, 0, 0, 0, 57, 58, 3, 12, 6, 0, 58, 59, 5, 18, 0, 0, 59, 60, 3, 14, 7, 0, 60, 106, 1, 0, 0, 0, 61, 62, 3, 12, 6, 0, 62, 63, 5, 19, 0, 0, 63, 64, 3, 14, 7, 0, 64, 106, 1, 0, 0, 0, 65, 66, 3, 12, 6, 0, 66, 67, 5, 15, 0, 0, 67, 68, 3, 14, 7, 0, 68, 106, 1, 0, 0, 0, 69, 70, 3, 12, 6, 0, 70, 71, 5, 14, 0, 0, 71, 72, 3, 14, 7, 0, 72, 106, 1, 0, 0, 0, 73, 74, 3, 12, 6, 0, 74, 75, 5, 21, 0, 0, 75, 76, 3, 14, 7, 0, 76, 106, 1, 0, 0, 0, 77, 78, 3, 12, 6, 0, 78, 79, 5, 28, 0, 0, 79, 80, 3, 14, 7, 0, 80, 106, 1, 0, 0, 0, 81, 82, 3, 12, 6, 0, 82, 83, 5, 29, 0, 0, 83, 84, 3, 14, 7, 0, 84, 106, 1, 0, 0, 0, 85, 86, 3, 12, 6, 0, 86, 87, 5, 22, 0, 0, 87, 88, 3, 6, 3, 0, 88, 106, 1, 0, 0, 0, 89, 90, 3, 12, 6, 0, 90, 91, 5, 23, 0, 0, 91, 92, 3, 6, 3, 0, 92, 106, 1, 0, 0, 0, 93, 94, 3, 12, 6, 0, 94, 95, 5, 24, 0, 0, 95, 106, 1, 0, 0, 0, 96, 97, 3, 12, 6, 0, 97, 98, 5, 25, 0, 0, 98, 106, 1, 0, 0, 0, 99, 100, 3, 12, 6, 0, 100, 101, 5, 20, 0, 0, 101, 102, 3, 16, 8, 0, 102, 106, 1, 0, 0, 0, 103, 106, 3, 12, 6, 0, 104, 106, 3, 14, 7, 0, 105, 49, 1, 0, 0, 0, 105, 53, 1, 0, 0, 0, 105, 57, 1, 0, 0, 0, 105, 61, 1, 0, 0, 0, 105, 65, 1, 0, 0, 0, 105, 69, 1, 0, 0, 0, 105, 73, 1, 0, 0, 0, 105, 77, 1, 0, 0, 0, 105, 81, 1, 0, 0, 0, 105, 85, 1, 0, 0, 0, 105, 89, 1, 0, 0, 0, 105, 93, 1, 0, 0, 0, 105, 96, 1, 0, 0, 0, 105, 99, 1, 0, 0, 0, 105, 103, 1, 0, 0, 0, 105, 104, 1, 0, 0, 0, 106, 5, 1, 0, 0, 0, 107, 108, 5, 3, 0, 0, 108, 121, 5, 4, 0, 0, 109, 110, 5, 3, 0, 0, 110, 115, 3, 14, 7, 0, 111, 112, 5, 5, 0, 0, 112, 114, 3, 14, 7, 0, 113, 111, 1, 0, 0, 0, 114, 117, 1, 0, 0, 0, 115, 113, 1, 0, 0, 0, 115, 116, 1, 0, 0, 0, 116, 118, 1, 0, 0, 0, 117, 115, 1, 0, 0, 0, 118, 119, 5, 4, 0, 0, 119, 121, 1, 0, 0, 0, 120, 107, 1, 0, 0, 0, 120, 109, 1, 0, 0, 0, 121, 7, 1, 0, 0, 0, 122, 123, 3, 12, 6, 0, 123, 124, 5, 27, 0, 0, 124, 125, 5, 30, 0, 0, 125, 126, 3, 10, 5, 0, 126, 143, 1, 0, 0, 0, 127, 128, 3, 12, 6, 0, 128, 129, 5, 27, 0, 0, 129, 130, 5, 31, 0, 0, 130, 131, 3, 10, 5, 0, 131, 143, 1, 0, 0, 0, 132, 133, 3, 12, 6, 0, 133, 134, 5, 27, 0, 0, 134, 135, 5, 33, 0, 0, 135, 136, 3, 10, 5, 0, 136, 143, 1, 0, 0, 0, 137, 138, 3, 12, 6, 0, 138, 139, 5, 27, 0, 0, 139, 140, 5, 34, 0, 0, 140, 141, 3, 10, 5, 0, 141, 143, 1, 0, 0, 0, 142, 122, 1, 0, 0, 0, 142, 127, 1, 0, 0, 0, 142, 132, 1, 0, 0, 0, 142, 137, 1, 0, 0, 0, 143, 9, 1, 0, 0, 0, 144, 145, 5, 1, 0, 0, 145, 159, 5, 2, 0, 0, 146, 147, 5, 1, 0, 0, 147, 148, 3, 8, 4, 0, 148, 149, 5, 2, 0, 0, 149, 159, 1, 0, 0, 0, 150, 151, 5, 1, 0, 0, 151, 152, 3, 2, 1, 0, 152, 153, 5, 2, 0, 0, 153, 159, 1, 0, 0, 0, 154, 155, 5, 1, 0, 0, 155, 156, 3, 14, 7, 0, 156, 157, 5, 2, 0, 0, 157, 159, 1, 0, 0, 0, 158, 144, 1, 0, 0, 0, 158, 146, 1, 0, 0, 0, 158, 150, 1, 0, 0, 0, 158, 154, 1, 0, 0, 0, 159, 11, 1, 0, 0, 0, 160, 161, 5, 35, 0, 0, 161, 13, 1, 0, 0, 0, 162, 171, 5, 9, 0, 0, 163, 171, 5, 10, 0, 0, 164, 171, 5, 37, 0, 0, 165, 171, 5, 36, 0, 0, 166, 171, 5, 6, 0, 0, 167, 171, 5, 7, 0, 0, 168, 171, 5, 8, 0, 0, 169, 171, 5, 35, 0, 0, 170, 162, 1, 0, 0, 0, 170, 163, 1, 0, 0, 0, 170, 164, 1, 0, 0, 0, 170, 165, 1, 0, 0, 0, 170, 166, 1, 0, 0, 0, 170, 167, 1, 0, 0, 0, 170, 168, 1, 0, 0, 0, 170, 169, 1, 0, 0, 0, 171, 15, 1, 0, 0, 0, 172, 173, 5, 11, 0, 0, 173, 17, 1, 0, 0, 0, 9, 30, 44, 46, 105, 115, 120, 142, 158, 170]
Original file line number Diff line number Diff line change
Expand Up @@ -51,8 +51,7 @@ WS=39
'>'=17
'<='=18
'>='=19
'=~'=20
'LIKE'=21
':~'=20
'.'=27
'max'=30
'min'=31
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -168,6 +168,18 @@ public class EsQueryBaseListener implements EsQueryListener {
* <p>The default implementation does nothing.</p>
*/
@Override public void exitEqExpr(EsQueryParser.EqExprContext ctx) { }
/**
* {@inheritDoc}
*
* <p>The default implementation does nothing.</p>
*/
@Override public void enterLikeExpr(EsQueryParser.LikeExprContext ctx) { }
/**
* {@inheritDoc}
*
* <p>The default implementation does nothing.</p>
*/
@Override public void exitLikeExpr(EsQueryParser.LikeExprContext ctx) { }
/**
* {@inheritDoc}
*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,13 @@ public class EsQueryBaseVisitor<T> extends AbstractParseTreeVisitor<T> implement
* {@link #visitChildren} on {@code ctx}.</p>
*/
@Override public T visitEqExpr(EsQueryParser.EqExprContext ctx) { return visitChildren(ctx); }
/**
* {@inheritDoc}
*
* <p>The default implementation returns the result of calling
* {@link #visitChildren} on {@code ctx}.</p>
*/
@Override public T visitLikeExpr(EsQueryParser.LikeExprContext ctx) { return visitChildren(ctx); }
/**
* {@inheritDoc}
*
Expand Down
Loading

0 comments on commit 1160124

Please sign in to comment.