elevate.xml 1.0 KB

123456789101112131415161718192021222324252627
  1. <?xml version="1.0" encoding="UTF-8" ?>
  2. <!--
  3. This file allows you to boost certain search items to the top of search
  4. results. You can find out an item's ID by searching directly on the Solr
  5. server. Search API generally constructs item IDs (esp. for entities) as:
  6. $document->id = "$site_hash-$index_id-$datasource:$entity_id:$language_id";
  7. If you want this file to be automatically re-loaded when a Solr commit takes
  8. place (e.g., if you have an automatic script active which updates elevate.xml
  9. according to newly-indexed data), place it into Solr's data/ directory.
  10. Otherwise, place it with the other configuration files into the conf/
  11. directory.
  12. See http://wiki.apache.org/solr/QueryElevationComponent for more information.
  13. -->
  14. <elevate>
  15. <!-- Example for ranking the node #789 first in searches for "example query": -->
  16. <!--
  17. <query text="example query">
  18. <doc id="ab12cd34-site_index-entity:789:en" />
  19. </query>
  20. -->
  21. <!-- Multiple <query> elements can be specified, contained in one <elevate>. -->
  22. <!-- <query text="...">...</query> -->
  23. </elevate>