# \[ES 5.2.0\] Error: \[illegal\_argument\_exception\] Fractional absolute document frequencies are not allowed

**URL:** https://discuss.elastic.co/t/es-5-2-0-error-illegal-argument-exception-fractional-absolute-document-frequencies-are-not-allowed/108397
**Category:** Elasticsearch
**Created:** [November 20, 2017, 1:51pm UTC](https://discuss.elastic.co/t/es-5-2-0-error-illegal-argument-exception-fractional-absolute-document-frequencies-are-not-allowed/108397 "2017-11-20T13:51:42Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![mguillau42](https://avatars.discourse-cdn.com/v4/letter/m/2acd7d/32.png) [@mguillau42](https://discuss.elastic.co/u/mguillau42)
#### Post date: [November 20, 2017, 1:51pm UTC](https://discuss.elastic.co/t/es-5-2-0-error-illegal-argument-exception-fractional-absolute-document-frequencies-are-not-allowed/108397/1 "2017-11-20T13:51:43Z")

</div>

Hi,

We are experiencing a weird issue which prevents us and our users from using the `suggest` feature from elasticsearch.

When I try to obtain suggestions for the text `"obligation de"` using the following query

```auto
{
    "index": "arrets52",
    "type": "arret",
    "body": {
        "suggest": {
            "text": " obligation de",
            "simple_phrase": {
                "phrase": {
                    "field": "contenu_html.trigram",
                    "size": 1,
                    "gram_size": 3,
                    "max_errors": 2,
                    "confidence": 2.5,
                    "direct_generator": [
                        {
                            "field": "contenu_html.trigram",
                            "suggest_mode": "always"
                        },
                        {
                            "field": "contenu_html.reverse",
                            "suggest_mode": "always",
                            "pre_filter": "reverse",
                            "post_filter": "reverse"
                        },
                        {
                            "field": "contenu_html.nostem_with_accents",
                            "suggest_mode": "missing"
                        }
                    ],
                    "collate": {
                        "query": {
                            "params": {},
                            "inline": "{\"bool\":{\"must\":[{\"multi_match\":{\"query\":\"{{suggestion}}\",\"analyzer\":\"query_analyzer\",\"type\":\"cross_fields\",\"fields\":[\"doc_id^2\",\"search_title^0.1\",\"formation^2\",\"arrets_dec_att^1\",\"president^1\",\"avocat_gl^1\",\"avocats^1\",\"rapporteur^1\",\"commissaire_gvt^1\",\"keywords^2\",\"liens^2\",\"numero^4\",\"numero_affaire^4\",\"other_numbers^4\",\"solution^2\",\"nature^2\",\"ville^2\",\"siege_appel^2\",\"juri_prem^2\",\"lieu_prem^2\",\"ecli^2\",\"reference_url^2\",\"wikipedia^100\",\"ancien_id^2\",\"type_rec^2\",\"nor^2\",\"nature_qualifiee^2\",\"loi_def^2\",\"titre_jo^2\",\"loi_def_nor^2\",\"loi_def_num^2\",\"saisines^2\",\"observations^2\",\"publi_bull_ref^4\",\"ref_numeros_affaires^2\",\"organisations^2\",\"issue^2\",\"resolution_number^2\",\"doctype_branch^2\",\"legifrance_ref^2\",\"reference_citation^2\",\"inpi_ref^2\",\"inpi_marq^0.1\",\"inpi_prod^2\",\"inpi_ti^2\",\"inpi_obj^2\",\"inpi_cib^2\",\"inpi_ct^2\",\"demandeurs_names^0.1\",\"defendeurs_names^0.1\",\"dem_ou_def_names^0.1\",\"lawyer_ids^2\",\"enterprise_ids^2\",\"comment_titles^1\",\"citation_titles^0.1\",\"saisines_html^2\",\"observations_html^2\",\"sommaire_ana^2\",\"contenu_html^1\",\"moyens_annexes^1\",\"comment_contents^0.5\",\"citation_contents^0.05\"],\"operator\":\"and\"}}]}}"
                        },
                        "prune": true
                    }
                }
            }
        }
    }
}

```

The following exception constantly occurs:

```auto
Error: [illegal_argument_exception] Fractional absolute document frequencies are not allowed

```

It does not happen with some queries , `animak` for instance correctly suggests `animal`

I checked the documentation and the only mentions of a parameter which cannot be fractional are `min_doc_freq` and `max_term_freq` (according to [https://www.elastic.co/guide/en/elasticsearch/reference/5.2/search-suggesters-term.html](https://www.elastic.co/guide/en/elasticsearch/reference/5.2/search-suggesters-term.html))  
However I am not using these parameters.  
Am i missing something ?

---

<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: [December 18, 2017, 1:51pm UTC](https://discuss.elastic.co/t/es-5-2-0-error-illegal-argument-exception-fractional-absolute-document-frequencies-are-not-allowed/108397/2 "2017-12-18T13:51:59Z")

</div>

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