You are here

function DrupalSolrQueryInterface::addParam in Apache Solr Search 6.3

Same name and namespace in other branches
  1. 8 apachesolr.interface.inc \DrupalSolrQueryInterface::addParam()
  2. 7 apachesolr.interface.inc \DrupalSolrQueryInterface::addParam()

Adds a param to be sent when running the Solr search.

If the param is single-valued, this will replace rather than add the value.

Parameters

string $name: A Solr param name, e.g. 'q' or 'fl'.

$value: A Solr param value: an array of values, or a string for a single value.

Return value

DrupalSolrQueryInterface The called object.

1 method overrides DrupalSolrQueryInterface::addParam()
SolrBaseQuery::addParam in ./Solr_Base_Query.php
Adds a param to be sent when running the Solr search.

File

./apachesolr.interface.inc, line 186

Class

DrupalSolrQueryInterface
The interface for all 'query' objects.

Code

function addParam($name, $value);