caching - solr query warmup troubles and solrconfig.xml -
i trying configure warmup queries in solrconfig.xml on solr version 4.10.3, no matter how cache seems disappear after minute or so, , first search again takes 20 secs., subsequent searches coming straight away.
the query looks (filter variable search-term):
solr/nyheder/select?q=overskrift:" & filter & "+or+underrubrik:" & filter & "+or+tekst:" & filter&fl=id+oprettet+overskrift+underrubrik+tekst+pix &sort=oprettet+desc
and solrconfig.xml section (which seems nothing) looks (it similar event="firstsearcher"):
<listener event="newsearcher" class="solr.querysenderlistener"> <arr name="queries"> <lst> <str name="q">*:*</str> <str name="sort">oprettet desc</str> <str name="fl">id oprettet overskrift underrubrik tekst pix</str> </lst> <lst> <str name="q">overskrift:* or underrubrik:* or tekst:*</str> <str name="sort">oprettet desc</str> <str name="fl">id oprettet overskrift underrubrik tekst pix</str> </lst> </arr> </listener> edit: added commit configuration
<autocommit> <maxtime>120000</maxtime> <opensearcher>true</opensearcher> </autocommit> <autosoftcommit> <maxtime>${solr.autosoftcommit.maxtime:-1}</maxtime> </autosoftcommit>
everytime softcommit or hard commit, caches more or less invalidated, since type of commit create "newsearcher". have softcommit or hardcommit set 1 minute.
check link , see sections soft commits , hard commits.
Comments
Post a Comment