<ruby id="bdb3f"></ruby>

    <p id="bdb3f"><cite id="bdb3f"></cite></p>

      <p id="bdb3f"><cite id="bdb3f"><th id="bdb3f"></th></cite></p><p id="bdb3f"></p>
        <p id="bdb3f"><cite id="bdb3f"></cite></p>

          <pre id="bdb3f"></pre>
          <pre id="bdb3f"><del id="bdb3f"><thead id="bdb3f"></thead></del></pre>

          <ruby id="bdb3f"><mark id="bdb3f"></mark></ruby><ruby id="bdb3f"></ruby>
          <pre id="bdb3f"><pre id="bdb3f"><mark id="bdb3f"></mark></pre></pre><output id="bdb3f"></output><p id="bdb3f"></p><p id="bdb3f"></p>

          <pre id="bdb3f"><del id="bdb3f"><progress id="bdb3f"></progress></del></pre>

                <ruby id="bdb3f"></ruby>

                ThinkChat2.0新版上線,更智能更精彩,支持會話、畫圖、視頻、閱讀、搜索等,送10W Token,即刻開啟你的AI之旅 廣告
                # Boolean 布爾字段接受JSON?**true**和**false**值,但也可以接受被解釋為**true**或**false**的字符串和數字: | False值 | `false`,?`"false"`,?`"off"`,?`"no"`,?`"0"`,?`""`,?`0`,?`0.0` | | True值 | 任何非false值 | **5.1.0中棄用。** 雖然Elasticsearch目前在索引時間內接受上述值。 不建議使用這些偽布爾值搜索布爾域。 請改用“**true**”或“**false**”。 **在5.3.0中棄用。** 任何非false,“false”,true和“true”的值已被棄用。 例如: | `PUT my_index` `{` `"mappings"``: {` `"my_type"``: {` `"properties"``: {` `"is_published"``: {` `"type"``:?``"boolean"` `}` `}` `}` `}` `}` `POST my_index/my_type/``1` `{` `"is_published"``:?``"true"`?`#``1` `}` `GET my_index/_search` `{` `"query"``: {` `"term"``: {` `"is_published"``:?``true`?`#``2` `}` `}` `}` | | 1 | Indexing a document with?`"true"`, which is interpreted as?`true`. | | 2 | Searching for documents with a JSON?`true`. | 聚合類似?terms aggregation(術語聚合)使用1和0的鍵,以及**key_as_string**的字符串“**true**”和“**false**”。 在腳本中使用布爾字段,返回1和0: | `POST my_index/my_type/``1` `{` `"is_published"``:?``true` `}` `POST my_index/my_type/``2` `{` `"is_published"``:?``false` `}` `GET my_index/_search` `{` `"aggs"``: {` `"publish_state"``: {` `"terms"``: {` `"field"``:?``"is_published"` `}` `}` `},` `"script_fields"``: {` `"is_published"``: {` `"script"``: {` `"lang"``:?``"painless"``,` `"inline"``:?``"doc['is_published'].value"` `}` `}` `}` `}` | ### Boolean字段的參數 **boolean**字段接受以下參數 | [`boost`](https://www.elastic.co/guide/en/elasticsearch/reference/5.4/mapping-boost.html "boost") | 映射字段級查詢時間提升。 接受一個浮點數,默認為**1.0**。 | | [`doc_values`](https://www.elastic.co/guide/en/elasticsearch/reference/5.4/doc-values.html "doc_values") | 該字段是否應該以多列的方式存儲在磁盤上,以便以后可以將其用于排序,聚合或腳本? 接受**true**(默認)或**false**。 | | [`index`](https://www.elastic.co/guide/en/elasticsearch/reference/5.4/mapping-index.html "index") | 應該可以搜索該字段嗎??**接受true(默認)和false。** | | [`null_value`](https://www.elastic.co/guide/en/elasticsearch/reference/5.4/null-value.html "null_value") | 接受上面列出的任何真實或虛假的價值。 該值替換任何顯式空值。 默認為**null**,這意味著該字段被視為丟失。 | | [`store`](https://www.elastic.co/guide/en/elasticsearch/reference/5.4/mapping-store.html "store") | 字段值是否應與**_sourcefield**分開存儲和檢索。 接受**true**或**false**(默認)。 |
                  <ruby id="bdb3f"></ruby>

                  <p id="bdb3f"><cite id="bdb3f"></cite></p>

                    <p id="bdb3f"><cite id="bdb3f"><th id="bdb3f"></th></cite></p><p id="bdb3f"></p>
                      <p id="bdb3f"><cite id="bdb3f"></cite></p>

                        <pre id="bdb3f"></pre>
                        <pre id="bdb3f"><del id="bdb3f"><thead id="bdb3f"></thead></del></pre>

                        <ruby id="bdb3f"><mark id="bdb3f"></mark></ruby><ruby id="bdb3f"></ruby>
                        <pre id="bdb3f"><pre id="bdb3f"><mark id="bdb3f"></mark></pre></pre><output id="bdb3f"></output><p id="bdb3f"></p><p id="bdb3f"></p>

                        <pre id="bdb3f"><del id="bdb3f"><progress id="bdb3f"></progress></del></pre>

                              <ruby id="bdb3f"></ruby>

                              哎呀哎呀视频在线观看