Search/Lucene/Search/QueryEntry/Phrase.php
Zend Framework
LICENSE
This source file is subject to the new BSD license that is bundled with this package in the file LICENSE.txt. It is also available through the world-wide-web at this URL: http://framework.zend.com/license/new-bsd If you did not receive a copy of the license and are unable to obtain it through the world-wide-web, please send an email to [email protected] so we can send you a copy immediately.
- Category
- Zend
- Copyright
- Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
- License
- New BSD License
- Package
- Zend_Search_Lucene
- Subpackage
- Search
- Version
- $Id: Phrase.php 24593 2012-01-05 20:35:02Z matthew $
\Zend_Search_Lucene_Search_QueryEntry_Phrase
Package: Zend\Search\Lucene\Search
- Parent(s)
- \Zend_Search_Lucene_Search_QueryEntry
- Category
- Zend
- Copyright
- Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
- License
- New BSD License
Properties


float $_boost = 1.0
Default value
1.0
Details- Type
- float
- Inherited_from
- \Zend_Search_Lucene_Search_QueryEntry::$$_boost
Methods


__construct(string $phrase, string $field) : void
Object constractor
Parameters
Name | Type | Description |
---|---|---|
$phrase | string | |
$field | string |


getQuery(string $encoding) : \Zend_Search_Lucene_Search_Query
Transform entry to a subquery
Parameters
Returns
Throws
Name | Type | Description |
---|---|---|
$encoding | string |
Type | Description |
---|---|
\Zend_Search_Lucene_Search_Query |
Exception | Description |
---|---|
\Zend_Search_Lucene_Search_QueryParserException |