On Sep 22, 2009, at 8:51 PM, Mark A. Matienzo wrote:

Is there any way to configure in solrconf.xml (or anywhere else) what fields
to return by default?

Yes - in one of the requestHandler sections of solrconfig.xml, you can
specify defaults for specific query parameters. For example, you could
modify the configuration for stock search handler for the type of data
you mentioned as follows:

 <requestHandler name="standard" class="solr.SearchHandler">
   <!-- default values for query parameters -->
    <lst name="defaults">
      <str name="fl">author,title,publisher,date,subject</str>
    </lst>
 </requestHandler>

--
Mark A. Matienzo
Applications Developer, Digital Experience Group
The New York Public Library


Resolved. Tastes great; less filling, and it is a small world. Thanks!

--
Eric Morgan

Reply via email to