In my solrconfig.xml, I setup this way, but it doesn't work at all. Any one
can help? it works one without other one.

  <searchComponent name="elevateListings"
class="org.apache.solr.handler.component.QueryElevationComponent" >
    <str name="queryFieldType">string_ci</str>
    <str name="config-file">elevateListings.xml</str>
    <str name="forceElevation">false</str>
  </searchComponent>

  <requestHandler name="mb_listings" class="solr.SearchHandler">
    <lst name="defaults">
      <str name="echoParams">explicit</str>
      <int name="rows">20</int>
      <str name="defType">dismax</str>
      <str name="qf">name^2 full_text^1</str>
      <str name="fl">uuid</str>
      <str name="version">2.2</str>
      <str name="indent">on</str>
      <str name="tie">0.1</str>
    </lst>
    <lst name="appends">
      <str name="fq">type:Listing</str>
    </lst>
    <lst name="invariants">
      <str name="facet">false</str>
    </lst>
    <arr name="last-components">
      <str>spellcheck</str>
    </arr>
    <arr name="last-components">
      <str>elevateListings</str>
    </arr>
  </requestHandler>

If I remove spellcheck component, the elevate component works (the result
also loads from elevateListings.xml).
If I remove elevate component,
http://localhost:8081/solr/select/?q=redd&qt=mb_listings&spellcheck=true&spellcheck.collate=truedoes
work.

Any ideas?

Chhorn Chamnap
http://chamnapchhorn.blogspot.com/

Reply via email to