There is an index with a list of addresses, each address has a city and state, and it is necessary to implement an autocompet on them. I see two ways:

  • create a separate index with cities and states that will need to be maintained
  • do autocomplete on a large index, but with a certain number of crutches on the aplicus. Most likely you will have to make two requests, for cities and states separately

Any thoughts on that?

    0