[ES 5.2.0] Error: [illegal_argument_exception] Fractional absolute document frequencies are not allowed

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

{
    "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:

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)
However I am not using these parameters.
Am i missing something ?

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