search type
-
elasticsearch search type query then fetch and dfselasticsearch 2021. 3. 25. 21:51
GET test/_search?search_type=dfs_query_then_fetch { "query": { "match_phrase_prefix": { "title": { "query": "d", "max_expansions": 5 } } } } 응답 결과 "_score" : 1.0, "_source" : {"title":"drunk"} "_score" : 0.30685282, "_source" : {"title":"dzone"} "_score" : 0.30685282, "_source" : {"title":"data"} "_score" : 0.30685282, "_source" : {"title":"drive"} 왜 "drunk"라는 값을 포함하는 문서의 스코어만 1.0이고 그 외에는 0.3일까?..