NEST/ElasticSearch.Net Phrase Suggester Collate issue

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!

Hey @tsquires, thanks for raising this. It does indeed look like a bug, would you mind opening an issue for this?

Sure thing, just submitted the issue, thanks for the reply.

1 Like

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.