# Contains unrecognized parameter: \[ignore\_unavailable\]

**URL:** <https://discuss.elastic.co/t/contains-unrecognized-parameter-ignore-unavailable/64922>\
**Category:** Elasticsearch\
**Created:** [November 3, 2016, 5:27pm UTC](https://discuss.elastic.co/t/contains-unrecognized-parameter-ignore-unavailable/64922 "2016-11-03T17:27:53Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![guillaumeCSA](https://avatars.discourse-cdn.com/v4/letter/g/4bbf92/32.png) [@guillaumeCSA](https://discuss.elastic.co/u/guillaumeCSA)\
**Post date:** [November 3, 2016, 5:27pm UTC](https://discuss.elastic.co/t/contains-unrecognized-parameter-ignore-unavailable/64922/1 "2016-11-03T17:27:53Z")

</div>

On logstash (5.0) i use the geoip filter but the type of geoip.location is number and kibana expect an geo\_point type.  
so i try to apply a custom mapping on my index

it'works if a use the name of the index PUT/mail-2016-11.02 but if i try a wildcard in name it doesnt work

like this : curl -XPUT "[http://elastic:elastic@127.0.0.1:9200/mail-\*](http://elastic:elastic@127.0.0.1:9200/mail-*) it doesnt work ( i think it's because there is non index with this name yet) so i'll try using the querystring option ignore\_unavailable and allow\_no\_indices  
but it doesnt work ! i got error message

"request [/mail-\*] contains unrecognized parameter: [ignore\_unavailable]"

---

<div class="post-metadata">

**Author:** ![cbuescher](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/cbuescher/32/60402_2.png) [@cbuescher](https://discuss.elastic.co/u/cbuescher)\
**Post date:** [November 3, 2016, 6:36pm UTC](https://discuss.elastic.co/t/contains-unrecognized-parameter-ignore-unavailable/64922/2 "2016-11-03T18:36:29Z")

</div>

Have you tried

```auto
PUT /{index}/_mapping/{type}
{ body }

```

like suggested in the [reference](https://www.elastic.co/guide/en/elasticsearch/reference/5.0/indices-put-mapping.html)?

---

<div class="post-metadata">

**Author:** ![guillaumeCSA](https://avatars.discourse-cdn.com/v4/letter/g/4bbf92/32.png) [@guillaumeCSA](https://discuss.elastic.co/u/guillaumeCSA)\
**Post date:** [November 3, 2016, 7:37pm UTC](https://discuss.elastic.co/t/contains-unrecognized-parameter-ignore-unavailable/64922/3 "2016-11-03T19:37:55Z")

</div>

Thanks for your anser i have just try it now like this but it doesnt work i received an :

* * *

## PUT /{mail-\*}/\_mapping/{ex}?allow\_no\_indices=true&ignore\_unavailable=true { "mappings": { "ex": { "properties": { "client-hostname": { ...

this is the answer : i know that the index does not exit because i run a DELETE mail-\* just before and this is what i want ! it seems that the querystring allow\_no\_indices is not works  
{  
"error": {  
"root\_cause": [  
{  
"type": "index\_not\_found\_exception",  
"reason": "no such index",  
"index\_uuid": "_na_",  
"index": "[{mail-_}]"  
}  
],  
"type": "index\_not\_found\_exception",  
"reason": "no such index",  
"index\_uuid": "na",  
"index": "[{mail-_}]"  
},  
"status": 404  
}

---

<div class="post-metadata">

**Author:** ![cbuescher](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/cbuescher/32/60402_2.png) [@cbuescher](https://discuss.elastic.co/u/cbuescher)\
**Post date:** [November 3, 2016, 8:09pm UTC](https://discuss.elastic.co/t/contains-unrecognized-parameter-ignore-unavailable/64922/4 "2016-11-03T20:09:29Z")

</div>

That was probably a misunderstanding. If you take a look at the reference page you'll see that `{index}` and `{type}` are placeholders for actual index names (including multiple index names and wildcards). Leave the curly brackets for those two things and it should work.

---

<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 5, 2017, 10:06pm UTC](https://discuss.elastic.co/t/contains-unrecognized-parameter-ignore-unavailable/64922/5 "2017-07-05T22:06:48Z")

</div>


