On Dec 14, 2007, at 11:53 AM, Robert Purdy wrote:
Also is it possible to warm a dynamic field ie (category_*) in the warming section in the solrconfig.xml? If so what does it store in the cache if say I have category_1, category_2, category_3, category_4 dynamically stored in the index? Does it make a separate bitset for each field or does it combine
it all of them somehow?

Solr maintains separate filter caches for each field. Unfortunately there is not a way to warm up each of these fields from simply just solrconfig.xml. However, if you're amenable to writing a little script to warm at the appropriate time, you could fetch the field names from a request to the LukeRequestHandler, and use that information to make the desired warming requests. You can wire in a call to your script from solrconfig.xml here:

<!-- A postCommit event is fired after every commit or optimize command
    <listener event="postCommit" class="solr.RunExecutableListener">
      <str name="exe">solr/bin/snapshooter</str>
      <str name="dir">.</str>
      <bool name="wait">true</bool>
      <arr name="args"> <str>arg1</str> <str>arg2</str> </arr>
      <arr name="env"> <str>MYVAR=val1</str> </arr>
    </listener>
    -->

We should, however, make category_* work in all contexts that a field can be specified.

        Erik

Reply via email to