<output id="qn6qe"></output>

    1. <output id="qn6qe"><tt id="qn6qe"></tt></output>
    2. <strike id="qn6qe"></strike>

      亚洲 日本 欧洲 欧美 视频,日韩中文字幕有码av,一本一道av中文字幕无码,国产线播放免费人成视频播放,人妻少妇偷人无码视频,日夜啪啪一区二区三区,国产尤物精品自在拍视频首页,久热这里只有精品12

      ragflow的ES文檔信息描述

      本地部署后訪問(wèn)地址

       http://localhost:1200/ragflow_798de0090fb211f0beb2010101010000/_search

       

      解釋每個(gè)字段啥意思:

       

      Took

      表示查詢ES所花費(fèi)的時(shí)間毫秒

      Timed_out

      是否查詢超時(shí)  可以設(shè)置False

      _shards.total

      總共分片數(shù)

      _shards.successful

      成功執(zhí)行的分片數(shù)

      _shards.skipped

      跳過(guò)的分片數(shù)

      _shards.failed

      失敗的分片數(shù)

      Hits.total

      表示總共有多少條匹配的文檔

      Hits.value

      總的匹配數(shù)值

      Hits.Relation

      表示分頁(yè)關(guān)系例如 eq表示完全匹配

      max_score

      表示查詢最高得分,通常用于排序查詢,

      Hits查詢結(jié)果的數(shù)組

      如下 Hits[0] 

      Hits._index

      表示文檔所在索引名稱

      Hits._id

      表示文檔唯一標(biāo)識(shí)符

      Hits._score

      表示文檔匹配得分,值為1表示該文檔與查詢完全匹配

      Hits._source

      表示文檔源數(shù)據(jù)

      Hits.doc_id

      文檔特定id,應(yīng)該是文檔id

      Hits.kb_id

      知識(shí)庫(kù)id

      Hits.doc_kwd

      表示文檔的關(guān)鍵字或相關(guān)標(biāo)記

      Hits.title_tks

      文檔標(biāo)題內(nèi)容或處理過(guò)的標(biāo)題,”測(cè)試 文件 修訂”,是該文檔標(biāo)題字段

      Hits.content_with_weight

      文檔內(nèi)容部分,可能包含HTML或其他格式化信息

      Hits.content_sn_tks

      分析后的內(nèi)容

      Hits.timestamp

      文檔的時(shí)間戳

       

      案例2

       

       

      ES存儲(chǔ)的文檔內(nèi)容

       

       

       

      解釋每個(gè)字段啥意思:

       

      Took

      表示查詢ES所花費(fèi)的時(shí)間毫秒

      Timed_out

      是否查詢超時(shí)  可以設(shè)置False

      _shards.total

      總共分片數(shù)

      _shards.successful

      成功執(zhí)行的分片數(shù)

      _shards.skipped

      跳過(guò)的分片數(shù)

      _shards.failed

      失敗的分片數(shù)

      Hits.total

      表示總共有多少條匹配的文檔

      Hits.value

      總的匹配數(shù)值

      Hits.Relation

      表示分頁(yè)關(guān)系例如 eq表示完全匹配

      Hits.max_score

      表示查詢最高得分,通常用于排序查詢,

      Hits.Hits查詢結(jié)果的數(shù)組

       

      Hits.Hits[0]._index

      表示文檔所在索引名稱

      Hits.Hits[0]._id

      表示文檔唯一標(biāo)識(shí)符

      Hits.Hits[0]._score

      表示文檔匹配得分,值為1表示該文檔與查詢完全匹配

      Hits.Hits[0]._source

      表示文檔源數(shù)據(jù)

      Hits.Hits[0].doc_id

      文檔特定id,應(yīng)該是文檔id

      Hits.Hits[0].kb_id

      知識(shí)庫(kù)id

      Hits.Hits[0].docnm_kwd

      文檔名稱關(guān)鍵詞

      Hits.Hits[0].title_sm_tks

      標(biāo)題短語(yǔ)分詞結(jié)果

      Hits.Hits[0].title_tks

      文檔標(biāo)題內(nèi)容或處理過(guò)的標(biāo)題分詞結(jié)果,”測(cè)試 文件 修訂”,是該文檔標(biāo)題字段

      Hits.Hits[0].content_with_weight

      文檔內(nèi)容部分,可能包含HTML或其他格式化信息

      Hits.Hits[0].content_ltk

      內(nèi)容的長(zhǎng)文本關(guān)鍵詞

      Hits.Hist[0].content_sm_ltk

      內(nèi)容的短文本關(guān)鍵詞

      Hits.Hits[0].content_sn_tks

      分析后的內(nèi)容

      Hits.Hits[0].timestamp

      文檔的時(shí)間戳

      Hits.Hits[0].create_time

      創(chuàng)建時(shí)間

      Hits.Hits[0].img_id

      圖像id

      Hits.Hits[0].important_kwd

      重要的關(guān)鍵詞

      Hits.Hits[0].important_tks

      重要的分詞結(jié)果

      Hits.Hits[0].question_kwd

      問(wèn)題關(guān)鍵詞

      Hite.Hits[0].question_tks

      問(wèn)題的分詞結(jié)果

       

       

       

      ES查詢

       

      查看文檔總數(shù)

      http://localhost:1200/_count

      返回結(jié)果

      {

        "count": 4064,

        "_shards": {

          "total": 16,

          "successful": 16,

          "skipped": 0,

          "failed": 0

        }

      }

       

      查詢所有索引的文檔總數(shù)

      http://localhost:1200/_cat/indices?h=index,docs.count

      返回結(jié)果

      索引名稱(ragflow_用戶id)              文檔數(shù)量(我只看到塊數(shù)量)

      ragflow_f666bd640de011f093ca010101010000    8

      ragflow_919dbff108c611f09507e8b0c5bc3b1d   23

      ragflow_798de0090fb211f0beb2010101010000   10

      ragflow_da7918980fa311f09d91010101010000 1010

      ragflow_86b6c8ba0f9d11f0aced010101010000   11

      ragflow_4d5f61aa0ea011f08b08010101010000  921

      ragflow_7032d84a0ab211f0b720e8b0c5bc3b1d 2013

      ragflow_f42dd5100ab511f085a0e8b0c5bc3b1d   10

       

      查詢某個(gè)索引下的文檔列表  默認(rèn)只顯示10條數(shù)據(jù)

      參數(shù)

      http://localhost:1200/索引/_search?pretty

      案例:

      http://localhost:1200/ragflow_f666bd640de011f093ca010101010000/_search?pretty

       

       

       

      分頁(yè)查詢某個(gè)索引下的文檔列表  

      參數(shù) from第幾頁(yè),size當(dāng)前頁(yè)顯示多少條

      http://localhost:1200/索引/_search?pretty&from=50&size=50

      示例:

      http://localhost:1200/ragflow_7032d84a0ab211f0b720e8b0c5bc3b1d/_search?pretty&from=50&size=50

       

       

        

      POST /_analyze
      {
        "analyzer":"standard",
        "text":"黑馬程序員學(xué)習(xí)java太棒了"
        
      }
      
      POST /_analyze
      {
        "analyzer":"ik_smart",
        "text":"黑馬程序員學(xué)習(xí)java太棒了"
      }
      POST /_analyze
      {
        "analyzer":"ik_max_word",
        "text":"黑馬程序員學(xué)習(xí)java太棒了"
      }
      POST /_analyze
      {
        "analyzer":"smartcn",
        "text":"黑馬程序員學(xué)習(xí)java太棒了"
      }
      
      
      PUT /my_tables
      {
        "mappings": {
          "properties": {
            "html_text": {
              "type":           "text",
              "store":           true,
              "analyzer":       "smartcn",        
              "search_analyzer":"smartcn"         
            },
            "content.as_you_type": {
              "type": "search_as_you_type"          
            },
            "html":   { "type": "keyword" } 
          }
        }
      }
      #查詢索引內(nèi)容  
      POST table_index_bak_8a0e17ac2c8011f0a0e7e8b0c5bc3b20/_search
      
      GET table_index_bak_8a0e17ac2c8011f0a0e7e8b0c5bc3b20/_search
      {
        "size": 1,
        "query": {
          "match_phrase": {
            "full_text": {
              "query": "稅種 計(jì)稅依據(jù) 稅率",
              "slop": 100
            }
          }
        }
      }
      GET table_index_bak_8a0e17ac2c8011f0a0e7e8b0c5bc3b20/_search
      {
        "size": 1,
        "query": {
          "match_phrase": {
            "full_text": {
              "query": "稅種 計(jì)稅依據(jù) 稅率 按稅法規(guī)定計(jì)算的銷(xiāo)售貨物和應(yīng)稅勞務(wù)收入 增值稅",
              "slop": 100
            }
          }
        }
      }
      
      POST table_index_bak_8a0e17ac2c8011f0a0e7e8b0c5bc3b20/_search
      {
        "query": {
          "bool": {
            "should": [
              { "match": { "full_text": "稅種" } },
              { "match": { "full_text": "計(jì)稅依據(jù)" } },
              { "match": { "full_text": "稅率" } },
              { "match": { "full_text": "銷(xiāo)售貨物和應(yīng)稅勞務(wù)收入" } },
              { "match": { "full_text": "增值稅" } }
            ],
            "minimum_should_match": 4   
          }
        }
      }
      
      #minimum_should_match 滿足多少個(gè) 
      POST table_index_bak_8a0e17ac2c8011f0a0e7e8b0c5bc3b20/_search
      {
        "query": {
          "bool": {
            "should": [
              { "match": { "full_text": "公司的中文名稱" } },
              { "match": { "full_text": "東軟集團(tuán)股份有限公司" } },
              { "match": { "full_text": "公司的中文簡(jiǎn)稱" } },
              { "match": { "full_text": "東軟集團(tuán)" } },
              { "match": { "full_text": "公司的外文名稱" } },
              { "match": { "full_text": "Neusoft" } },
              { "match": { "full_text": "Corporation" } },
              { "match": { "full_text": "公司的外文名稱縮寫(xiě)" } },
              { "match": { "full_text": "Neusoft" } },
              { "match": { "full_text": "公司的法定代表人" } },
              { "match": { "full_text": "劉積仁" } }
            ],
            "minimum_should_match": 6
          }
        }
      }
      
      
      
      
      
      
      
      #source_id 文檔docid 
      #kb_id知識(shí)庫(kù)id 
      POST ragflow_8a0e17ac2c8011f0a0e7e8b0c5bc3b20/_search
      {
        "query": {
          "bool": {
            "should": [
              { "match": { "source_id": "292a59702c8111f0ad28e8b0c5bc3b20" } },
              { "match": { "kb_id": "0aad07852c8111f0a530e8b0c5bc3b20" } }
             
            ],
            "minimum_should_match": 1
          }
        }
      }
       
      
      #每個(gè)es小文檔id
      POST ragflow_8a0e17ac2c8011f0a0e7e8b0c5bc3b20/_search
      {
        "query": {
          "ids": {
            "values": ["08d05d224cd8fcbd"]
          }
        }
      }
      

       

        

       

       

       

       查看某個(gè)索引有哪些字段

      GET ragflow_8a0e17ac2c8011f0a0e7e8b0c5bc3b20/_mapping
       多個(gè)字段一起查詢
      #ids 每個(gè)es小文檔id
      # must 復(fù)合查詢 類(lèi)似于and
      # terms 精準(zhǔn)匹配頁(yè)碼9  page_num_int
      POST ragflow_8a0e17ac2c8011f0a0e7e8b0c5bc3b20/_search
      {
        "query": {
          "bool":{
          "must": [
            {"ids": {"values": ["08d05d224cd8fcbd"]}},
            {"terms": {"page_num_int": [9]}}
            ]
          }
        }
      }

       

       

       

       

      posted @ 2025-04-03 11:34  郎小樂(lè)  閱讀(73)  評(píng)論(0)    收藏  舉報(bào)
      主站蜘蛛池模板: 国产精品呻吟一区二区三区| 色悠悠国产在线视频一线| 日韩精品亚洲专区在线观看 | 久热这里只有精品视频六| 中文字幕一区日韩精品| 五月丁香啪啪| 国产精品露脸视频观看| 亚洲综合中文字幕首页| 国产精品自在线拍国产手机版| 韩国午夜理伦三级| 亚洲国产精品自产在线播放| 亚洲精品免费一二三区| 日本一卡2卡3卡4卡无卡免费| 欧美日韩综合网| 成人免费亚洲av在线| 老熟妇国产一区二区三区| 91久久偷偷做嫩草影院免费看| 久久天堂无码av网站| 亚洲一区精品视频在线| 亚洲AV无码专区亚洲AV桃 | 97色成人综合网站| 蜜臀av无码一区二区三区| 日韩精品无码不卡无码| 亚洲熟女国产熟女二区三区| 亚洲中文久久久精品无码| 在厨房拨开内裤进入在线视频| 国产精品一区二区三区黄| 亚洲鸥美日韩精品久久| 雷山县| 国产在线视频精品视频| 2021亚洲国产精品无码| 内射中出无码护士在线| 国产日韩入口一区二区| 亚洲VA成无码人在线观看天堂| 福利视频一区二区在线| 亚洲熟妇色xxxxx欧美老妇| 成人午夜电影福利免费| 亚洲高潮喷水无码AV电影| 精品午夜福利在线视在亚洲| 欧美人成精品网站播放| 国产高清精品在线91|