如何减少Solr中的Qtime(查询时间)

时间:2016-02-10 07:34:14

标签: apache search solr

我需要将Solr中的qtime从24ms减少到10ms。我尝试过以下参数:

responseHeader: {
  status: 0,
  QTime: 24,
  params: {
    json.wrf: "jQuery111205813984868582338_1454571708911",
    sort: "id desc",
    indent: "on",
    hl.simple.pre: "<b>",
    hl.fl: "title keywords model_name",
    wt: "json",
    hl: "true",
    rows: "100",
    hl.highlightMultiTerm: "true",
    hl.snippets: "1",
    start: "0",
    q: "{!q.op=AND df=title}pl~1",
    _: "1454571708913",
    hl.simple.post: "</b>",
    qt: "spellchecker",
    hl.usePhraseHighlighter: "true"
    }
  }

Solr URL:

 http://www.example.com:8983/solr/mycoll/select?q={!q.op=AND%20df=title}pl~1&indent=on&sort=id%20desc&qt=spellchecker&wt=json&hl=true&hl.fl=title+keywords+model_name&hl.simple.pre=%3Cb%3E&hl.simple.post=%3C%2Fb%3E&hl.usePhraseHighlighter=true&hl.highlightMultiTerm=true&hl.snippets=1&start=0&rows=100&json.wrf=jQuery111205813984868582338_1454571708911&_=1454571708913

schema.xml

<field name="id" type="string" indexed="true" stored="true" required="true" multiValued="false" />
<field name="title" type="text_general" indexed="true" stored="true" multiValued="true" />
<field name="subject" type="text_general" indexed="true" stored="true" />
<field name="description" type="text_general" indexed="true" stored="true" />
<field name="comments" type="text_general" indexed="true" stored="true" />
<field name="author" type="text_general" indexed="true" stored="true" />
<field name="keywords" type="text_general" indexed="true" stored="true" />
<field name="category" type="text_general" indexed="true" stored="true" />
<field name="resourcename" type="text_general" indexed="true" stored="true" />
<field name="url" type="text_general" indexed="true" stored="true" />
<field name="content_type" type="string" indexed="true" stored="true" multiValued="true" />
<field name="last_modified" type="date" indexed="true" stored="true" />
<field name="links" type="string" indexed="true" stored="true" multiValued="true" />

请参阅以下参考链接:

0 个答案:

没有答案