I'm trying to add elevation to Solr for a few different queries. I followed the instructions here: http://ift.tt/1tUC4gW
but the changes I made have had no effect. Here's what I've done.
Core 0 is online; Core 1 is offline. I've made all of my changes to Core 0 and reloaded Core 0 in the Solr Admin
In solr/core0/conf/solrconfig.xml, I added this XML:
-
<searchComponent name="elevator" class="org.apache.solr.handler.component.QueryElevationComponent" >
<str name="queryFieldType">string</str>
<str name="config-file">elevate.xml</str>
<str name="forceElevation">true</str>
</searchComponent>
<requestHandler name="/elevate" class="solr.SearchHandler">
<lst name="defaults">
<str name="echoParams">explicit</str>
</lst>
<arr name="last-components">
<str>elevator</str>
</arr>
</requestHandler>
- In the same folder (solr/core0/conf) I created a file elevate.xml:
-
<elevate>
<query text="ent">
<doc id="ektron_4294973723" />
<doc id="ektron_4294973721" />
<doc id="ektron_4294973743" />
<doc id="ektron_4294973791" />
<doc id="ektron_4294973977" />
</query>
<query text="ear">
<doc id="ektron_4294971473" />
</query>
<query text="nose">
<doc id="ektron_4294971473" />
</query>
<query text="throat">
<doc id="ektron_4294971473" />
</query>
</elevate>
As far as I can tell, I've put everything in the correct locations. I reloaded the config file in Solr Admin, and when I view the config file in Solr Admin I can see the changes I've made. I don't see anything wrong with my syntax. Why isn't my elevation working?
No comments:
Post a Comment