elasticsearch - Term vectors for nested objects not working -


i'm trying retrieve term vectors document nested field. here's mapping:

put /mcve/ex/_mapping {   "properties": {     "parent": {       "type": "nested",       "properties": {         "value": {"type": "string", "term_vector": "with_positions_offsets", "store": true, "analyzer": "polish"}       }     }   } } 

then i'm inserting document:

put /mcve/ex/ample {   "parent": {     "value": "ala ma kota"   } } 

and asking term vectors:

get /mcve/ex/ample/_termvectors {   "fields": ["parent.value"] } 

the response contains empty object in term_vectors field. thought maybe term vectors don't work within nested objects , indeed, works without "type": "nested".

there's weird thing, though: if don't store term vector, query above works perfectly. mapping works fine:

put /mcve/ex/_mapping {   "properties": {     "parent": {       "type": "nested",       "properties": {         "value": {"type": "string", "analyzer": "polish"}       }     }   } } 

apparently es can calculate term vectors nested objects, break when store them. doing wrong?


Comments

Popular posts from this blog

asynchronous - C# WinSCP .NET assembly: How to upload multiple files asynchronously -

aws api gateway - SerializationException in posting new Records via Dynamodb Proxy Service in API -

asp.net - Problems sending emails from forum -