# Pointing index name to alias

**URL:** <https://discuss.elastic.co/t/pointing-index-name-to-alias/171267>\
**Category:** Elasticsearch\
**Created:** [March 7, 2019, 10:12am UTC](https://discuss.elastic.co/t/pointing-index-name-to-alias/171267 "2019-03-07T10:12:30Z")\
**Posts on this page:** 1\
**Showing post:** 13

<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:** [March 8, 2019, 10:18am UTC](https://discuss.elastic.co/t/pointing-index-name-to-alias/171267/13 "2019-03-08T10:18:47Z")

</div>

Please format your code, logs or configuration files using `</>` icon as explained in [this guide](https://discuss.elastic.co/t/about-the-elasticsearch-category/21) and not the citation button. It will make your post more readable.

Or use markdown style like:

````
```
CODE
```

````

This is the icon to use if you are not using markdown format:

 ![image](https://us1.discourse-cdn.com/elastic/original/3X/7/e/7e6e239431ec2d71cbf1beef741f2e93e7cc762c.jpg)

There's a live preview panel for exactly this reasons.

Here the URL seems wrong to me. It should be something like:

```auto
url => "http://localhost:9200/test1/_update_by_query?q=id:1"

```

or

```auto
url => "localhost:9200/test1/_update_by_query?q=id:1"

```

---

_[View the full topic](https://discuss.elastic.co/t/pointing-index-name-to-alias/171267)._
