lmenezes / elasticsearch-kopf

web admin interface for elasticsearch
MIT License
2.41k stars 332 forks source link

Broken "Analyze by field type" in "Analysis" screen #369

Closed vchalmel closed 8 years ago

vchalmel commented 8 years ago

Hi,

I have had this strange bug since a few weeks where I can't test analyzers field by field anymore. The "analyze by analyzer" block works fine, but if I choose a field in "Analyze by field type" it seems to only have a space tokenization (no stemming, no ellision, no stopwords deletion, nothing...)

"ar_sous_titre": {
        "analyzer": "analyse_mots_clefs_combines",
        "type": "string",
        "fields": {
          "search": {
            "similarity": "BM25",
            "analyzer": "analyse_texte_libre",
            "term_vector": "with_positions_offsets",
            "type": "string"
          },
          "raw": {
            "similarity": "BM25",
            "analyzer": "analyse_mots_clefs",
            "term_vector": "with_positions_offsets",
            "type": "string"
          }
        }
      },

resultscomp

rchelimil commented 8 years ago

Facing same issue. Some notes based on my analysis:

A. In Elasticsearch 1.x.x, you can specify the field as: type.field.

http://localhost:9200/myindex/_analyze?field=mytype.field1

B. In Elasticsearch 2.x.x, specifying the type doesn't work.

Doesn't work: http://localhost:9200/myindex/_analyze?field=mytype.field1

Works: http://localhost:9200/myindex/_analyze?field=field1

lmenezes commented 8 years ago

hey all,

I guess what might be happening is that you are using ES 2.X with an older version of kopf. Try updating to the most recent version and things should work fine :)

lmenezes commented 8 years ago

I will close this for now, but if you still have an issue after upgrading kopf, please reopen it or create a new one.