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

                合規國際互聯網加速 OSASE為企業客戶提供高速穩定SD-WAN國際加速解決方案。 廣告
                ## 查詢地理形狀 地理形狀一個不尋常的地方在于它運行我們使用形狀來做查詢,而不僅僅是坐標點。 舉個例子,當我們的用戶剛剛邁出阿姆斯特丹中央火車站時,我們可以用如下方式,查詢出方圓1km內所有的地標: ```json GET /attractions/landmark/_search { "query": { "geo_shape": { "location": { <1> "shape": { <2> "type": "circle", <3> "radius": "1km" "coordinates": [ <4> 4.89994, 52.37815 ] } } } } } ``` - <1> 查詢使用 `location` 字段中的地理形狀; - <2> 查詢中的形狀是由`shape`鍵對應的內容表示; - <3> 形狀是一個半徑為1km的圓形; - <4> 安姆斯特丹中央火車站入口的坐標點。 默認,查詢(或者過濾器 —— 工作方式相同)會從已索引的形狀中尋找與指定形狀有交集的形狀。 此外,`relation` 也可以設置為 `disjoint`來查找與指定形狀不相交的,或者設置為`within`來查找完全落在查詢形狀中的。 舉個例子,我們查找所有落在阿姆斯特丹內的地標: ```json GET /attractions/landmark/_search { "query": { "geo_shape": { "location": { "relation": "within", <1> "shape": { "type": "polygon", "coordinates": [[ <2> [4.88330,52.38617], [4.87463,52.37254], [4.87875,52.36369], [4.88939,52.35850], [4.89840,52.35755], [4.91909,52.36217], [4.92656,52.36594], [4.93368,52.36615], [4.93342,52.37275], [4.92690,52.37632], [4.88330,52.38617] ]] } } } } } ``` - <1> 只匹配完全落在查詢形狀中的(已索引)形狀。 - <2> 這個多邊形表示安姆斯特丹中心。
                  <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>

                              哎呀哎呀视频在线观看