You are here

function Solr_Base_Query::__construct in Apache Solr Search 5

Same name and namespace in other branches
  1. 5.2 Solr_Base_Query.php \Solr_Base_Query::__construct()
  2. 6 Solr_Base_Query.php \Solr_Base_Query::__construct()
  3. 6.2 Solr_Base_Query.php \Solr_Base_Query::__construct()

Parameters

$querystring: The string that a user would type into the search box. Suitable input may come from search_get_keys()

$field_operator: An object level operator. AND is the implicit default. All segments will be joined with this operator.

File

./Solr_Base_Query.php, line 106

Class

Solr_Base_Query

Code

function __construct($querystring, $field_operator = "AND") {
  $this->_field_operator = $field_operator;
  $this->_query = trim($querystring);
  $this
    ->parse_query();
}