zoukankan      html  css  js  c++  java
  • es教程

    概念

    关系数据库 ⇒ 数据库 ⇒ 表 ⇒ 行 ⇒ 列(Columns)

    Elasticsearch ⇒ 索引(Index) ⇒ 类型(type) ⇒ 文档(Docments) ⇒ 字段(Fields)

    mappings

    Mapping is the process of defining how a document, and the fields it contains, are stored and indexed. For instance, use mappings to define:

    > which string fields should be treated as full text fields.
    > which fields contain numbers, dates, or geolocations.
    > whether the values of all fields in the document should be indexed into the catch-all _all field.
    > the format of date values.
    > custom rules to control the mapping for dynamically added fields.

    type为string类型的mapping的最重要的两个属性是index和analyzer.
    index与三种可选项:
    analyzed
    First analyze the string and then index it. In other words, index this
    field as full text.
    not_analyzed
    Index this field, so it is searchable, but index the value exactly as
    specified. Do not analyze it.
    no
    Don’t index this field at all. This field will not be searchable

    索引结构

    ref

    https://es.xiaoleilu.com/

    https://www.cnblogs.com/dreamroute/p/8484457.html

    https://www.jianshu.com/p/bd23b86848dd

  • 相关阅读:
    BZOJ 1899: [Zjoi2004]Lunch 午餐
    BZOJ3670: [Noi2014]动物园
    BZOJ3712: [PA2014]Fiolki
    BZOJ1057: [ZJOI2007]棋盘制作
    BZOJ4326: NOIP2015 运输计划
    BZOJ4721: [Noip2016]蚯蚓
    BZOJ1131: [POI2008]Sta
    BZOJ1856: [Scoi2010]字符串
    BZOJ4003: [JLOI2015]城池攻占
    [AH2017/HNOI2017]单旋
  • 原文地址:https://www.cnblogs.com/huilei/p/10396019.html
Copyright © 2011-2022 走看看