NEST/ElasticSearch.Net Phrase Suggester Collate issue


(Tim) #1

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!


(Russ Cam) #2

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


(Tim) #3

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


(system) #4

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