elevate.xml 1.1 KB

12345678910111213141516171819202122232425262728293031
  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. The item IDs are in general constructed as follows:
  6. Search API:
  7. $document->id = $index_id . '-' . $item_id;
  8. Apache Solr Search Integration:
  9. $document->id = $site_hash . '/' . $entity_type . '/' . $entity->id;
  10. If you want this file to be automatically re-loaded when a Solr commit takes
  11. place (e.g., if you have an automatic script active which updates elevate.xml
  12. according to newly-indexed data), place it into Solr's data/ directory.
  13. Otherwise, place it with the other configuration files into the conf/
  14. directory.
  15. See http://wiki.apache.org/solr/QueryElevationComponent for more information.
  16. -->
  17. <elevate>
  18. <!-- Example for ranking the node #1 first in searches for "example query": -->
  19. <!--
  20. <query text="example query">
  21. <doc id="default_node_index-1" />
  22. <doc id="7v3jsc/node/1" />
  23. </query>
  24. -->
  25. <!-- Multiple <query> elements can be specified, contained in one <elevate>. -->
  26. <!-- <query text="...">...</query> -->
  27. </elevate>