# Shingle Token Filter min\_shingle\_size (0.19.9)

**URL:** <https://discuss.elastic.co/t/shingle-token-filter-min-shingle-size-0-19-9/9097>\
**Category:** Elasticsearch\
**Created:** [September 21, 2012, 3:08pm UTC](https://discuss.elastic.co/t/shingle-token-filter-min-shingle-size-0-19-9/9097 "2012-09-21T15:08:17Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Geoff\_Stockham](https://avatars.discourse-cdn.com/v4/letter/g/4af34b/32.png) [@Geoff\_Stockham](https://discuss.elastic.co/u/Geoff_Stockham)\
**Post date:** [September 21, 2012, 3:08pm UTC](https://discuss.elastic.co/t/shingle-token-filter-min-shingle-size-0-19-9/9097/1 "2012-09-21T15:08:17Z")

</div>

Hi,

I've just got around to upgrading from 0.19.4 to 0.19.9, and now indexing  
gives me the error "IllegalArgumentException[Min shingle size must be \<=  
max shingle size]"

I've had the max\_shingle\_size to 5 in the previous versions with no  
problems. I've tried adding the min\_shingle\_size as well but still get the  
error. The only thing that works is removing all settings and reverting to  
the defaults.

For info, I'm using [PlainElastic.Net](http://PlainElastic.Net) to create the settings, but I can see  
them set in the index metadata so I don't think that's where the issue is.

Any ideas? Has something changed in the latest version?

Thanks

Geoff

--

---

<div class="post-metadata">

**Author:** ![Geoff\_Stockham](https://avatars.discourse-cdn.com/v4/letter/g/4af34b/32.png) [@Geoff\_Stockham](https://discuss.elastic.co/u/Geoff_Stockham)\
**Post date:** [September 21, 2012, 3:14pm UTC](https://discuss.elastic.co/t/shingle-token-filter-min-shingle-size-0-19-9/9097/2 "2012-09-21T15:14:46Z")

</div>

Sorry, to answer my own question, this has changed:

"Fix reversed ShingleFilter constructor arguments"

> <https://github.com/elastic/elasticsearch/commit/e66bd4359a5d5e03a04a4a8a6bb26f25fe107f24>

If I change my parameter to "min\_shingle\_size" instead of  
"max\_shingle\_size" I get the behaviour I had before.

I'll create a github issue.

Geoff

On Friday, 21 September 2012 16:08:17 UTC+1, Geoff Stockham wrote:

> Hi,
> 
> I've just got around to upgrading from 0.19.4 to 0.19.9, and now indexing  
> gives me the error "IllegalArgumentException[Min shingle size must be \<=  
> max shingle size]"
> 
> I've had the max\_shingle\_size to 5 in the previous versions with no  
> problems. I've tried adding the min\_shingle\_size as well but still get the  
> error. The only thing that works is removing all settings and reverting to  
> the defaults.
> 
> For info, I'm using [PlainElastic.Net](http://PlainElastic.Net) to create the settings, but I can see  
> them set in the index metadata so I don't think that's where the issue is.
> 
> Any ideas? Has something changed in the latest version?
> 
> Thanks
> 
> Geoff

--

---

<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 6, 2017, 3:11am UTC](https://discuss.elastic.co/t/shingle-token-filter-min-shingle-size-0-19-9/9097/3 "2017-07-06T03:11:57Z")

</div>


