elasticsearch - More like this query across types with different field names? -
can more query used search across types different field names? example, suppose have 2 different types (e.g. type1 , type2), both of have text field, have different names (e.g. type1_text , type2_text). following query not produce results:
get /index-name/_search { "query": { "more_like_this" : { "fields" : ["type2_text"], "like" : [ { "_index" : "index-name", "_type" : "type1", "_id" : "1", "fields": ["type1_text"] } ] } } }
(it work if change mappings use same field names in both types.)
is there way cross-field comparisons in elasticsearch?
Comments
Post a Comment