-
Notifications
You must be signed in to change notification settings - Fork 1.2k
SuggestOption - Payload - How To Index Data In The Payload #984
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
For reference I figured it out: I just created an object: [JsonObject]
and indexed that using the following mapping: [ElasticProperty( |
FYI- we just added this recently: https://github.com/elasticsearch/elasticsearch-net/blob/develop/src/Nest/Domain/Suggest/SuggestField.cs Which you can get if you're willing to update to our CI package on myget. Otherwise, using your own object works fine. |
fix #984 add support for search exists API
Follow up question. Should SuggestField.Input be a string or an IEnumerable like @mickdelaney has. If its suppose to be a string then how do you handle multiple inputs? |
@Minx-SigEp it should be an IEnumerable, but would be a breaking change. We have this issue open #1220 to address it in 2.0. For now, you can just implement your own suggest object. |
@mickdelaney Here is how I indexed the completion suggestions: |
Hi,
I want to index the id of a entity that i'm using the completion suggester with.
the name will be the text & then a payload object would contain its id to use when selected.
as shown here: http://www.elasticsearch.org/guide/en/elasticsearch/reference/current/search-suggesters-completion.html
is that available in NEST at the moment?
regards
The text was updated successfully, but these errors were encountered: