如何在批量模式下运行渗流查询?

2024-04-19 18:27:14 发布

您现在位置:Python中文网/ 问答频道 /正文

我正在使用elasticsearch_dsl,我的文档是这样的:

class SneakerItem(Document):
    name = Text()
    brand = Text()
    model = Text()
    item_id = Text(fields={"keyword": Keyword()})
    url = Text(analyzer="simple", fields={"keyword": Keyword()}, required=True,)


class Recommendation(Document):
    name = Text()
    brand = Text()
    model = Text()

    query = Percolator()
    recommended_price = Integer()

如何使用此设置运行批量过滤查询


Tags: textname文档idfieldsmodelelasticsearchitem