Hi Eric,

On Tue, Sep 22, 2009 at 8:41 PM, Eric Lease Morgan
<eric_mor...@infomotions.com> 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

Reply via email to