# Search for an address

**URL:** <https://discuss.elastic.co/t/search-for-an-address/186720>\
**Category:** Elasticsearch\
**Created:** [June 20, 2019, 3:11pm UTC](https://discuss.elastic.co/t/search-for-an-address/186720 "2019-06-20T15:11:28Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![rori1](https://avatars.discourse-cdn.com/v4/letter/r/50afbb/32.png) [@rori1](https://discuss.elastic.co/u/rori1)\
**Post date:** [June 20, 2019, 3:11pm UTC](https://discuss.elastic.co/t/search-for-an-address/186720/1 "2019-06-20T15:11:28Z")

</div>

Hello,

I have an address in a nested object where number, road name, postal code and city are each in a specific field.

What is the best way to make search request from query like " 4 Brooklyn Rd Bromley" ?

Thanks for your help

---

<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:** [June 20, 2019, 5:22pm UTC](https://discuss.elastic.co/t/search-for-an-address/186720/2 "2019-06-20T17:22:19Z")

</div>

In [one of the talk I gave recently](https://speaker.pilato.fr/uxryJf/enriching-postal-addresses-with-elastic-stack), I proposed this:

```auto
GET bano/_search
{
  "size": 1, 
  "query": {
    "multi_match": {
      "query": "4 Brooklyn Rd Bromley",
      "fields": [
        "address.city",
        "address.street_name",
        "address.number"
      ],
      "type": "most_fields"
    }
  }
}

```

Source:

> <https://github.com/dadoonet/bano-elastic/blob/master/script.txt#L196-L210>

Note that I was using synonyms for the street name as `road` and `rd` might be the same thing.

> <https://github.com/dadoonet/bano-elastic/blob/master/script.txt#L67-L148>

HTH

---

<div class="post-metadata">

**Author:** ![rori1](https://avatars.discourse-cdn.com/v4/letter/r/50afbb/32.png) [@rori1](https://discuss.elastic.co/u/rori1)\
**Post date:** [June 26, 2019, 7:10am UTC](https://discuss.elastic.co/t/search-for-an-address/186720/3 "2019-06-26T07:10:22Z")

</div>

Great !

Thanks a lot

---

<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:** [July 24, 2019, 7:10am UTC](https://discuss.elastic.co/t/search-for-an-address/186720/4 "2019-07-24T07:10:32Z")

</div>

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