I'm upgrading to Nest 1.7 from .11.
All my queries are in raw json format, and when upgrading, it appears when performing a raw query search with my query, nest appends an outer query, causing failure.
The docs say it does not modify the string, but that's not completely true - http://nest.azurewebsites.net/nest/writing-queries.html#raw-strings
Initial Query:
{
"query": {
"match_all": {}
},
"facets": {
"field_one": {
"terms": {
"field": "my_favorite_field"
}
}
},
"from": 0,
"size": 25
}
Call using Nest:
client.Search<MyType>(q => q.QueryRaw(query));
Converts query to:
{
"query": {
"query": {
"match_all": {}
},
"facets": {
"field_one": {
"terms": {
"field": "my_favorite_field"
}
}
},
"from": 0,
"size": 25
}
}
The second query obviously fails. Is there any easy way to "disable" this behavior.
I'm largely trying to avoid rewriting/converting a hundred queries into the new DSL.