elasticsearch-langdetect icon indicating copy to clipboard operation
elasticsearch-langdetect copied to clipboard

Can't store langdetect field ?

Open adrianlungu opened this issue 7 years ago • 1 comments

Hello,

I've tried using the Language code and multi_field test code to create the mapping in the example, however, when I check to see if the mapping is created correctly, I always get the following:

{
   "test": {
      "mappings": {
         "docs": {
            "properties": {
               "text": {
                  "type": "langdetect",
                  "store": false,
                  "analyzer": "_keyword",
                  "include_in_all": false,
                  "languages": [
                     "en",
                     "de",
                     "fr"
                  ]
               }
            }
         }
      }
   }
}

Shouldn't store be set to true in this case ?

I've also tried updating the mapping but store is never set to true thus I cannot retrieve the result of langdetect alongside the source of the documents.

I'm using ES 5.4.0 at the moment. Should I try with an earlier version ?

Thanks!

adrianlungu avatar May 30 '17 14:05 adrianlungu

Thank you. There was a bug which is now fixed in version 5.4.0.1:

https://github.com/jprante/elasticsearch-langdetect/commit/8ad05fd443185ce5d287b279ec01c9a7937e53e7

jprante avatar May 30 '17 16:05 jprante