Class to create select search backend indepentent search queries.
Source for this file: /Search/src/interfaces/query.php
Version: | //autogentag// |
Child Class | Description |
---|---|
ezcSearchDeleteQuery | Class to create select search backend indepentent search queries. |
ezcSearchFindQuery | Class to create select search backend indepentent search queries. |
public ezcSearchQuery |
__construct(
$handler
, $definition
)
Creates a new search query with handler $handler and document definition $definition. |
public string |
between(
$field
, $value1
, $value2
)
Returns a string containing a field/value specifier, and an optional boost value. |
public string |
eq(
$field
, $value
)
Returns a string containing a field/value specifier, and an optional boost value. |
public string |
lAnd(
$...
)
Creates an AND clause |
public string |
lOr(
$...
)
Creates an OR clause |
public string |
not(
$clause
)
Creates a NOT clause |
public void |
reset(
)
Resets the query object for reuse. |
public ezcSearchQuery |
where(
$clause
)
Adds a select/filter statement to the query |
Creates a new search query with handler $handler and document definition $definition.
Name | Type | Description |
---|---|---|
$handler |
ezcSearchHandler | |
$definition |
ezcSearchDocumentDefinition |
Returns a string containing a field/value specifier, and an optional boost value.
The method uses the document definition field type to map the fieldname to a solr fieldname, and the $fieldType argument to escape the values correctly.
Name | Type | Description |
---|---|---|
$field |
string | |
$value1 |
mixed | |
$value2 |
mixed |
Returns a string containing a field/value specifier, and an optional boost value.
The method uses the document definition field type to map the fieldname to a solr fieldname, and the $fieldType argument to escape the $value correctly. If a definition is set, the $fieldType will be overridden with the type from the definition.
Name | Type | Description |
---|---|---|
$field |
string | |
$value |
mixed |
Creates an AND clause
This method accepts either an array of fieldnames, but can also accept multiple parameters as field names.
Name | Type | Description |
---|---|---|
$... |
mixed |
Creates an OR clause
This method accepts either an array of fieldnames, but can also accept multiple parameters as field names.
Name | Type | Description |
---|---|---|
$... |
mixed |
Creates a NOT clause
This method accepts a clause and negates it.
Name | Type | Description |
---|---|---|
$clause |
string |
Resets the query object for reuse.
Adds a select/filter statement to the query
Name | Type | Description |
---|---|---|
$clause |
string |