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

Popular posts from this blog

ubuntu - PHP script to find files of certain extensions in a directory, returns populated array when run in browser, but empty array when run from terminal -

php - How can i create a user dashboard -

javascript - How to detect toggling of the fullscreen-toolbar in jQuery Mobile? -