I'm using NEST/ElasticSearch 5.3 and when running a collate query with parameters on a phrase suggester the json produced and sent to the server looks like this with the params object inside of the query object:
"collate": {
"query": {
"id": "suggestCollate",
"params": {
"field-name": "name",
"site-id": "1",
"region-id": "1",
"industry-id": "4"
}
},
"prune": true
}
While a working query when setting up the json manually looks like this with the params object inside of the collate object instead:
"collate": {
"query": {
"id": "suggestCollate"
},
"params": {
"field-name": "name",
"site-id": "1",
"region-id": "1",
"industry-id": "4"
},
"prune": true
}
I'm thinking this is an issue the PhraseSuggestCollate object in NEST but wanted to see if anybody had any other ideas before submitting an issue on github.
Thanks!