# Lenteur analysis phonetic

**URL:** https://discuss.elastic.co/t/lenteur-analysis-phonetic/31452
**Category:** Discussions en français
**Created:** [October 1, 2015, 8:33am UTC](https://discuss.elastic.co/t/lenteur-analysis-phonetic/31452 "2015-10-01T08:33:20Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![Blured\_Derulb](https://avatars.discourse-cdn.com/v4/letter/b/848f3c/32.png) [@Blured\_Derulb](https://discuss.elastic.co/u/Blured_Derulb)
#### Post date: [October 1, 2015, 8:33am UTC](https://discuss.elastic.co/t/lenteur-analysis-phonetic/31452/1 "2015-10-01T08:33:20Z")

</div>

Bonjour,

Avec ce type de mapping j'ai des lenteurs au niveau du serveur qui m'empechent d'insérer des documents (plusieurs CPU sont à 100%) et il devient impossible d'insérer des docs et pas de traces de GC :

FreeBsd avec ELS 1.7 et OpenJDK 1.7

```auto
"Fbd5" : {
        "_id" : {
          "path" : "code"
        },
        "properties" : {
          "code" : {
            "type" : "string",
            "index" : "not_analyzed"
          },
          "hash" : {
            "type" : "string",
            "index" : "not_analyzed"
          },
          "key" : {
            "type" : "string",
            "index" : "not_analyzed"
          },
          "rank" : {
            "type" : "long"
          },
          "text" : {
            "type" : "string",
            "analyzer" : "english",
            "fields" : {
              "phonetic" : {
                "type" : "string",
                "analyzer" : "english_phonetic"
              },
              "syn" : {
                "type" : "string",
                "analyzer" : "english_syn"
              }
            }
}
```

Au niveau settings :

```auto
"labels-en" : {
    "settings" : {
      "index" : {
        "creation_date" : "1441643930857",
        "uuid" : "ck-wQCsqT0WvQhsQk4cfPw",
        "analysis" : {
          "analyzer" : {
            "english_phonetic" : {
              "filter" : ["lowercase", "english_phonetic", "english_possessive_stemmer", "english_stop"],
              "tokenizer" : "standard"
            },
            "english_syn" : {
              "filter" : ["lowercase", "english_synonyms", "english_possessive_stemmer", "english_stop"],
              "tokenizer" : "standard"
            },
            "ngram_analyzer" : {
              "type" : "custom",
              "filter" : ["lowercase", "ngram_filter"],
              "tokenizer" : "keyword"
            }
          },
          "filter" : {
            "english_stop" : {
              "type" : "stop",
              "stopwords" : "_english_"
            },
            "english_possessive_stemmer" : {
              "type" : "stemmer",
              "language" : "possessive_english"
            },
            "english_phonetic" : {
              "type" : "phonetic",
              "languageset" : "english",
              "encoder" : "beider_morse"
            },
            "english_synonyms" : {
              "type" : "synonym",
              "synonyms_path" : ""
            },
            "ngram_filter" : {
              "type" : "ngram",
              "min_gram" : "1",
              "max_gram" : "3"
            },
            "english_stemmer" : {
              "type" : "stemmer",
              "language" : "english"
            }
          }
        },
        "number_of_replicas" : "0",
        "number_of_shards" : "1",
        "version" : {
          "created" : "1070099"
        }
      }
```

Ca se produit au bout de 12000 insertions de documents.  
Je passe par des bulk insert de 1000 documents.  
Chaque document fait entre 300 octets et 2 Ko.

L'analyseur phonetic est il viable dans mon cas ?

Blured.

---

<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, 1:51pm UTC](https://discuss.elastic.co/t/lenteur-analysis-phonetic/31452/2 "2017-07-06T13:51:04Z")

</div>


