Solr基础操作7

2022-06-29 22:36:46 浏览数 (1)

单关键字匹配

代码语言:javascript复制
[root@h102 solr-5.3.0]# curl "http://localhost:8983/solr/gettingstarted/select?wt=json&indent=true&q=foundation"
{
  "responseHeader":{
    "status":0,
    "QTime":45,
    "params":{
      "indent":"true",
      "q":"foundation",
      "wt":"json"}},
  "response":{"numFound":3608,"start":0,"maxScore":0.05791749,"docs":[
      {
        "id":"/data/solr/solr-5.3.0/docs/solr-clustering/org/apache/solr/handler/clustering/carrot2/package-use.html",
        "title":["Uses of Package org.apache.solr.handler.clustering.carrot2 (Solr 5.3.0 API)"],
        "stream_content_type":["text/html"],
        "stream_size":[4597],
        "content_encoding":["UTF-8"],
        "date":["2015-08-17T00:00:00Z"],
        "x_parsed_by":["org.apache.tika.parser.DefaultParser",
          "org.apache.tika.parser.html.HtmlParser"],
        "content_type":["text/html; charset=utf-8"],
        "resourcename":["/data/solr/solr-5.3.0/docs/solr-clustering/org/apache/solr/handler/clustering/carrot2/package-use.html"],
        "dc_title":["Uses of Package org.apache.solr.handler.clustering.carrot2 (Solr 5.3.0 API)"],
        "_version_":1511824583560265728},
     
     ...
     ...
      {
        "id":"/data/solr/solr-5.3.0/docs/solr-test-framework/org/apache/solr/analysis/package-use.html",
        "title":["Uses of Package org.apache.solr.analysis (Solr 5.3.0 API)"],
        "stream_content_type":["text/html"],
        "stream_size":[4399],
        "content_encoding":["UTF-8"],
        "date":["2015-08-17T00:00:00Z"],
        "x_parsed_by":["org.apache.tika.parser.DefaultParser",
          "org.apache.tika.parser.html.HtmlParser"],
        "content_type":["text/html; charset=utf-8"],
        "resourcename":["/data/solr/solr-5.3.0/docs/solr-test-framework/org/apache/solr/analysis/package-use.html"],
        "dc_title":["Uses of Package org.apache.solr.analysis (Solr 5.3.0 API)"],
        "_version_":1511824702977343488}]
  }}
[root@h102 solr-5.3.0]# 

0 人点赞