Path

ez components / documentation / api reference / 2009.1 / search


eZ Components 2009.1

Search: ezcSearchFindQuery

[ Tutorial ] [ Solr schema ] [ Class tree ] [ Element index ] [ ChangeLog ] [ Credits ]

Interface: ezcSearchFindQuery

Class to create select search backend indepentent search queries. [source]

Parents

ezcSearchQuery
   |
   --ezcSearchFindQuery

Method Summary

public ezcSearchFindQuery select( $... )
Opens the query and selects which fields you want to return with the query.

Inherited Methods

From ezcSearchQuery :
public ezcSearchQuery ezcSearchQuery::__construct()
Creates a new search query with handler $handler and document definition $definition.
public string ezcSearchQuery::between()
Returns a string containing a field/value specifier, and an optional boost value.
public string ezcSearchQuery::boost()
Modifies a clause to give it higher weight while searching.
public string ezcSearchQuery::eq()
Returns a string containing a field/value specifier, and an optional boost value.
public ezcSearchQuery ezcSearchQuery::facet()
Adds one facet to the query.
public string ezcSearchQuery::fuzz()
Modifies a clause make it fuzzy.
public string ezcSearchQuery::important()
Creates an 'important' clause
public string ezcSearchQuery::lAnd()
Creates an AND clause
public ezcSearchQuery ezcSearchQuery::limit()
Registers from which offset to start returning results, and how many results to return.
public string ezcSearchQuery::lOr()
Creates an OR clause
public string ezcSearchQuery::not()
Creates a NOT clause
public ezcSearchQuery ezcSearchQuery::orderBy()
Tells the query on which field to sort on, and in which order
public void ezcSearchQuery::reset()
Resets the query object for reuse.
public ezcSearchQuery ezcSearchQuery::where()
Adds a select/filter statement to the query

Methods

select

ezcSearchFindQuery select( string|array(string) $... )
Opens the query and selects which fields you want to return with the query.
select() accepts an arbitrary number of parameters. Each parameter must contain either the name of a field or an array containing the names of the fields. Each call to select() appends fields to the list of fields that will be used in the query.
Example:
1.  $q->select'field1''field2' );
The same could also be written:
1.  $fields['field1';
2.  $fields[= 'field2;
3.  $q->select( $fields );
or using several calls
1.  $q->select'field1' )->select'field2' );

Parameters

Name Type Description
$... string|array(string) Either a string with a field name or an array of field names.

Last updated: Mon, 29 Jun 2009