# How do I make Elasticsearch address search a smooth experience?

**URL:** <https://discuss.elastic.co/t/how-do-i-make-elasticsearch-address-search-a-smooth-experience/205487>\
**Category:** Elasticsearch\
**Created:** [October 28, 2019, 2:31pm UTC](https://discuss.elastic.co/t/how-do-i-make-elasticsearch-address-search-a-smooth-experience/205487 "2019-10-28T14:31:48Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Bart\_de\_Man](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/bart_de_man/32/48319_2.png) [@Bart\_de\_Man](https://discuss.elastic.co/u/Bart_de_Man)\
**Post date:** [October 28, 2019, 2:31pm UTC](https://discuss.elastic.co/t/how-do-i-make-elasticsearch-address-search-a-smooth-experience/205487/1 "2019-10-28T14:31:49Z")

</div>

**Elasticsearch version** ( `bin/elasticsearch --version` ):  
5.6.11  
**Plugins installed** :

**JVM version** ( `java -version` ):  
openjdk version "1.8.0\_222"  
OpenJDK Runtime Environment (build 1.8.0\_222-8u222-b10-1ubuntu1~16.04.1-b10)  
OpenJDK 64-Bit Server VM (build 25.222-b10, mixed mode)

**OS version** ( `uname -a` if on a Unix-like system):  
Linux myserver 4.4.0-131-generic #157-Ubuntu SMP Thu Jul 12 15:51:36 UTC 2018 x86\_64 x86\_64 x86\_64 GNU/Linux

Hi all i'm currently facing an issue where I would like to be able to search for an Address in any way the user could enter said address, e.g. looking for an address.

I want my search to be able to search in such a way that the user input order doesnt matter.

for example an address:  
Strawinskylaan 1 (streetname + number)  
1077 XW Amsterdam (postalcode + postalcode Letters + City)

The user would input for example:  
"1077 XW"

OR

"Amsterdam Strawinskylaan"

OR

"Strawinskylaan"

Sometimes a building might have a name which is also stored in my documents

I currently store all of these mentioned fields separately as such per document:

- building\_name
- streetname
- number
- postalcode
- postalcode\_letters
- city

So without knowing in which order the user will give its input, how could i make my example work? Would I need to restructure?

---

<div class="post-metadata">

**Author:** ![dadoonet](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dadoonet/32/137187_2.png) [@dadoonet](https://discuss.elastic.co/u/dadoonet)\
**Post date:** [October 28, 2019, 5:21pm UTC](https://discuss.elastic.co/t/how-do-i-make-elasticsearch-address-search-a-smooth-experience/205487/2 "2019-10-28T17:21:45Z")

</div>

I think you can use the multimatch query and try to apply what the user has entered to every field. You might need to "boost" some fields though.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [November 25, 2019, 5:23pm UTC](https://discuss.elastic.co/t/how-do-i-make-elasticsearch-address-search-a-smooth-experience/205487/3 "2019-11-25T17:23:42Z")

</div>

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