Is available by querying the /query/suggest API endpoints. If you are building a custom search application, autocomplete Schema properties must be explicitly marked as is_suggestableįor the suggest API to autocomplete the corresponding property name and values. Remember, by default, phrases from the document titles are shown Widget, Cloud Search’s autocomplete feature is natively supported without anyĪdditional work. If you are using the default search application or the embeddable search Note: is_suggestable is supported only for text and enum properties. Properties must be explicitly marked as is_suggestable for the suggest API toĪutocomplete the corresponding property name and values. Important: Cloud Search’s autocomplete suggests phrases only from thoseīy default, phrases from the document titles are shown in autocomplete. Suggestion is called tail suggestion autocompleting only the last word/n-gramĬloud Search’s autocomplete returns a maximum of 5 suggestions from documentĬontent and 2 people suggestions. "avengers" since there is no text starting with "hermione a" together. In the previous example, it just expands "a" to "adventure", "action" and Note: Autocomplete tries to complete the last word (or ngram) being typed. Keystroke from the user is the character "a." The autocomplete suggestions shown Let's say the user selects the autocomplete suggestion “Hermione” and the next When querying this datasource, let's say the user starts by typing "h." The Similarly from document 2, we generate “Harry”, “Potter”, “Harry Potter”. “Avengers Infinity”, “Infinity War”, “Avengers Infinity War.” Two documents and resulting n-gram used for autocompleteįrom document 1, we extract ngrams (up to trigrams) “Avengers”, “Infinity”, “War”, The second document is titled "Harry Potter" with genre=Adventure, Fantasyįigure 1 illustrates how the autocomplete suggestions are extracted from theĭocument titles, properties, and the property values. ![]() Genre=science fiction and characters=Iron Man, Hulk
0 Comments
Leave a Reply. |