Commit 8b5c2a3c authored by Citronalco's avatar Citronalco
Browse files

add warmup queries to solrconfig.xml. Fixes slow queries after some time of inactivity

parent 6fd6d300
......@@ -575,16 +575,15 @@
-->
<listener event="newSearcher" class="solr.QuerySenderListener">
<arr name="queries">
<!--
<lst><str name="q">solr</str><str name="sort">price asc</str></lst>
<lst><str name="q">rocks</str><str name="sort">weight asc</str></lst>
-->
<lst><str name="q">warming query</str><str name="fq">author:test</str><str name="start">0</str><str name="rows">10</str><str name="excludeFromLogs">1</str></lst>
<lst><str name="q">warming query</str><str name="fq">text:test</str><str name="start">0</str><str name="rows">10</str><str name="excludeFromLogs">1</str></lst>
</arr>
</listener>
<listener event="firstSearcher" class="solr.QuerySenderListener">
<arr name="queries">
<lst>
<str name="q">static firstSearcher warming in solrconfig.xml</str>
<lst><str name="q">warming query</str><str name="fq">author:test</str><str name="start">0</str><str name="rows">10</str><str name="excludeFromLogs">1</str></lst>
<lst><str name="q">warming query</str><str name="fq">text:test</str><str name="start">0</str><str name="rows">10</str><str name="excludeFromLogs">1</str></lst>
</lst>
</arr>
</listener>
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment