-
Notifications
You must be signed in to change notification settings - Fork 34
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
(cherry picked from commit 9001994)
- Loading branch information
1 parent
7a2f138
commit 18c86a8
Showing
3 changed files
with
57 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
22 changes: 22 additions & 0 deletions
22
.../xp/repo/impl/elasticsearch/query/translator/factory/dsl/boolean/query/mustNot_array.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,22 @@ | ||
{ | ||
"boolean" : { | ||
"mustNot" : [ | ||
{ | ||
"boolean" : { | ||
"should" : { | ||
"fulltext" : { | ||
"fields" : [ | ||
"displayName" | ||
], | ||
"query" : "fisk" | ||
}, | ||
"term" : { | ||
"field" : "custom_number", | ||
"value" : 2.4 | ||
} | ||
} | ||
} | ||
} | ||
] | ||
} | ||
} |
28 changes: 28 additions & 0 deletions
28
...xp/repo/impl/elasticsearch/query/translator/factory/dsl/boolean/result/mustNot_array.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,28 @@ | ||
{ | ||
"bool" : { | ||
"must_not" : { | ||
"bool" : { | ||
"should" : [ | ||
{ | ||
"simple_query_string" : { | ||
"query" : "fisk", | ||
"fields" : [ | ||
"displayname._analyzed" | ||
], | ||
"analyzer" : "fulltext_search_default", | ||
"analyze_wildcard" : true | ||
} | ||
}, | ||
{ | ||
"term" : { | ||
"custom_number._number" : { | ||
"value" : 2.4, | ||
"_name" : "custom_number._number" | ||
} | ||
} | ||
} | ||
] | ||
} | ||
} | ||
} | ||
} |