You can use appends for any additional fq paramters, which would be appended
to the ones passed @ query time.
Check out the sample solrconfig.xml with the solr.
<!-- In addition to defaults, "appends" params can be specified
to identify values which should be appended to the list of
multi-val params from the query (or the existing "defaults").
In this example, the param "fq=instock:true" will be appended to
any query time fq params the user may specify, as a mechanism for
partitioning the index, independent of any user selected filtering
that may also be desired (perhaps as a result of faceted
searching).
NOTE: there is *absolutely* nothing a client can do to prevent
these
"appends" values from being used, so don't use this mechanism
unless you are sure you always want it.
-->
<lst name="appends">
<str name="fq">inStock:true</str>
</lst>
Regards,
Jayendra
On Tue, Aug 3, 2010 at 8:25 AM, Robert Neve <[email protected]> wrote:
> Hi,
>
> I have in my solr config file the code below to create a default for fq
> which works great. The problem I have is if I want to use a custom fq this
> one gets overwritten. Is there a way I can have it keep this fq and other
> custom ones? Basically this field sets if the person is to show up or not so
> it's important anyone set to d is never shown regardless of any other query
> filters.
>
> <lst name="defaults">
> <str name="fq">ss_cck_field_status:d </str>
>
> thanks in advance for any help
>
> Robert
>