映射与统计

    为什么我们使用字段_all搜索全年就会返回所有推文,而使用字段date搜索年份却没有结果呢?为什么使用两者所得到的结果是不同的?

    我们得到:

    所以类型为date的字段和类型为string的字段的索引方式是不同的。

    But by far the biggest difference is actually between fields that represent
    exact values (which can include string fields) and fields that
    represent full text. This distinction is really important — it’s the thing
    that separates a search engine from all other databases.