多字段中最新的索引数据搜索查询

时间:2019-08-08 06:01:51

标签: elasticsearch

运行查询以响应旧数据时,我必须在弹性搜索的多个字段中搜索xyz名称

django的Elasticsearch

查询过滤器的代码:

body = { “查询”:{

  "multi_match": {

       "query": "mayank",
            # "type": "best_fields",
       "fields": ["author_name^8", "article_title^8", "tags", "content"],
        # "operator": "or"  
        }
    }

similar_docs = es.search(index =“ xyz-index”,doc_type =“ doc”,body = body)

我运行上述查询,但结果是我获取的是旧数据,而不是最新的数据

0 个答案:

没有答案