opensearch-project / opensearch-go

Go Client for OpenSearch
https://opensearch.org/docs/latest/clients/go/
Apache License 2.0
202 stars 106 forks source link

[FEATURE] Add the Suggest field containing the output from the did-you-mean suggester in the SearchResp #601

Closed zr-bennettm closed 2 months ago

zr-bennettm commented 3 months ago

Is your feature request related to a problem?

Calling the Search function with a term suggester query as shown here in the documentation does not return suggestions. This is because the SearchResp struct does not contain the Suggest field that should contain the suggestions for the misspelt tokens.

What solution would you like?

Adding the Suggest field to the SearchResp struct

What alternatives have you considered?

Do you have any additional context?

dblock commented 2 months ago

I believe #602 implemented this fully, closing, LMK if otherwise @zr-bennettm.

zr-bennettm commented 2 months ago

@dblock that's correct, thanks for closing