Skip to content

Commit

Permalink
fix: rename underscored to dots for nested query path
Browse files Browse the repository at this point in the history
* fix: rename underscored to dots for nested query path

* fixed linting issue
  • Loading branch information
MJRuskin authored and nodkz committed Apr 12, 2019
1 parent 372310a commit 3d163ac
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/elasticDSL/Query/Query.js
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,8 @@ export function prepareQueryInResolve(
if (query.bool) {
query.bool = prepareBoolInResolve(query.bool, fieldMap);
}
if (query.nested && query.nested.query) {
if (query.nested && query.nested.query && query.nested.path) {
query.nested.path = query.nested.path.replace(/__/g, '.');
query.nested.query = prepareQueryInResolve(query.nested.query, fieldMap);
}
if (query.constant_score) {
Expand Down

0 comments on commit 3d163ac

Please sign in to comment.