forked from elastic/elasticsearch
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add
field_masking_span
to IndexQueryModule
The query parser for `field_masking_span` has never been added / bound to the IndexQueryModule. Closes elastic#3007
- Loading branch information
Showing
3 changed files
with
46 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
29 changes: 29 additions & 0 deletions
29
src/test/java/org/elasticsearch/test/unit/index/query/spanFieldMaskingTerm.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
{ | ||
span_near:{ | ||
clauses:[ | ||
{ | ||
span_term:{ | ||
age:34 | ||
} | ||
}, | ||
{ | ||
span_term:{ | ||
age:35 | ||
} | ||
}, | ||
{ | ||
field_masking_span:{ | ||
query:{ | ||
span_term:{ | ||
age_1 : 36 | ||
} | ||
}, | ||
field:"age" | ||
} | ||
} | ||
], | ||
slop:12, | ||
in_order:false, | ||
collect_payloads:false | ||
} | ||
} |