File tree 1 file changed +5
-3
lines changed
1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change 1
1
[[query-dsl-span-not-query]]
2
2
=== Span Not Query
3
3
4
- Removes matches which overlap with another span query. The span not
4
+ Removes matches which overlap with another span query or which are
5
+ within x tokens before (controlled by the parameter `pre`) or y tokens
6
+ after (controled by the parameter `post`) another SpanQuery. The span not
5
7
query maps to Lucene `SpanNotQuery`. Here is an example:
6
8
7
9
[source,js]
@@ -39,7 +41,7 @@ In the above example all documents with the term hoya are filtered except the on
39
41
Other top level options:
40
42
41
43
[horizontal]
42
- `pre`:: If set the amount of tokens before the include span can't have overlap with the exclude span.
43
- `post`:: If set the amount of tokens after the include span can't have overlap with the exclude span.
44
+ `pre`:: If set the amount of tokens before the include span can't have overlap with the exclude span. Defaults to 0.
45
+ `post`:: If set the amount of tokens after the include span can't have overlap with the exclude span. Defaults to 0.
44
46
`dist`:: If set the amount of tokens from within the include span can't have overlap with the exclude span. Equivalent
45
47
of setting both `pre` and `post`.
You can’t perform that action at this time.
0 commit comments