Merge pull request #590 from Tornaldo/patch-1

Update usage.md
This commit is contained in:
Tim Nagel 2014-06-01 16:38:37 +10:00
commit c52c32fb56

View file

@ -184,7 +184,7 @@ The following code will execute a search against the Elasticsearch server:
$finder = $this->container->get('fos_elastica.finder.site.article');
$boolQuery = new \Elastica\Query\Bool();
$fieldQuery = new \Elastica\Query\Text();
$fieldQuery = new \Elastica\Query\Match();
$fieldQuery->setFieldQuery('title', 'I am a title string');
$fieldQuery->setFieldParam('title', 'analyzer', 'my_analyzer');
$boolQuery->addShould($fieldQuery);