<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>

                ??一站式輕松地調用各大LLM模型接口,支持GPT4、智譜、豆包、星火、月之暗面及文生圖、文生視頻 廣告
                Elasticsearch exception \[type=illegal\_argument\_exception, reason=Text fields are not optimised for operations that require per-document field data like aggregations and sorting, so these operations are disabled by default. Please use a keyword field instead. Alternatively, set fielddata=true on \[companyName\] in order to load field data by uninverting the inverted index. Note that this can use significant memory.\] 因為 企業名稱(companyName) 字段是text的, 默認無法做排序, springboot上 使用 @Field 設置 fielddata=true不起效, (6.x 使用這個設置不行, 7.x了也不行, 不知道要咋通過@Field設置) ![](https://img.kancloud.cn/63/09/63097be353e518b0c0ca0ffe9b46fc3a_866x122.png) 解決方法: 之前用6.x 的時候, 記得是用 命令去設置的, 但是這玩意占用內存大 ``` PUT 自己的索引/_mapping/ { "properties": { "字段名": { "type": "text", "fielddata": true } } } ``` 加上之后能分詞, 能排序, 但是排序的不準, 因為已經被分詞了 優化 再加個企業名稱字段, keyword 類型, 專門用來排序, 這樣就耗費硬盤罷了, **但是在使用時要加 .keyword, 格式是 字段名.keyword ,注意中間有個點** 大概結構: ``` "sort": [ { "companyNameSort.keyword": { "order": "asc" } } ] ```
                  <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>

                              哎呀哎呀视频在线观看