You are viewing a plain text version of this content. The canonical link for it is here.
Posted to solr-user@lucene.apache.org by Eric Lease Morgan <er...@infomotions.com> on 2009/09/23 03:08:08 UTC
Re: returning stored fields [resolved]
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