Notes on search autocomplete

Pere Urbon-Bayes
Sep 12, 2018 · 5 min read

Characteristics of a good autocomplete

Patterns

Building an autocomplete functionality


Black pajamas — 100

Leather jacket — 76

Red pullover — 54

Swimsuit — 32

PUT music/_doc/1?refresh
{
“suggest” : {
“input”: [ “Nevermind”, “Nirvana” ],
“weight” : 34
}
}

POST _search?typed_keys
{
“suggest”: {
“text” : “some test message”,
“my-first-suggester” : {
“term” : {
“field” : “message”
}
},
“my-second-suggester” : {
“phrase” : {
“field” : “message”
}
}
}
}

Conclusions

References

Pere Urbon-Bayes

Written by

With more than 15 years in the IT industry. As an engineer and consultant he is focused on data processing and search, helping companies build reliable systems.

Welcome to a place where words matter. On Medium, smart voices and original ideas take center stage - with no ads in sight. Watch
Follow all the topics you care about, and we’ll deliver the best stories for you to your homepage and inbox. Explore
Get unlimited access to the best stories on Medium — and support writers while you’re at it. Just $5/month. Upgrade