Postal address autocomplete

We are currently evaluating an installation and trying to setup an index for address autocompletion for our users on our site. So that as a user starts typing an address, and possible matches start showing up for them to select. What kind of index mapping do you suggest? Our index contains all address fields separated out, ex street number, street, city, state, postal code, lat, long. Would also be nice to be able to let the search know the users lat/long so it matches address closes to users location, maybe a sort?

Hi @johnwc,

Have you considered Elastic App Search? In particular, you might be interested in the Result Suggestion feature: Result Suggestions Guide | App Search documentation [8.11] | Elastic

Hi @johnwc Welcome to the community!

I also suggest looking at


I think this works best though if you re-concatenate all the parts into a single field.

This would work a lot like when you start typing an address into Google maps...

The spatial component can be a bit tricky if you want to use it, but you certainly could do within a radius or filter by a ZIP code or a state or some other geographic area

This would be with straight/core elasticsearch.

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