kernel/search/plugins/ezsearchengine/ezsearchengine.php
File containing the eZSearchEngine class.
- Copyright
- Copyright (C) 1999-2011 eZ Systems AS. All rights reserved.
- License
- eZ Business Use License Agreement Version 2.0
- Package
- kernel
- Version
- 4.6.0
\eZSearchEngine
Package: kernel
File containing the eZSearchEngine class.
- Parent(s)
- \ezpSearchEngine
- Copyright
- Copyright (C) 1999-2011 eZ Systems AS. All rights reserved.
- License
- eZ Business Use License Agreement Version 2.0
- Version
- 4.6.0
Properties
Methods


addObject(
\eZContentObject $contentObject, bool $commit
=
true
)
:
bool
Adds object $contentObject to the search database.
Parameters
Returns
Name | Type | Description |
---|---|---|
$contentObject | \eZContentObject | Object to add to search engine |
$commit | bool | Whether to commit after adding the object |
Type | Description |
---|---|
bool | True if the operation succeed. |


buildPhraseSqlQueryPart(
$phraseIDArray, $identifier
=
false
)
:
void
Parameters
Name | Type | Description |
---|---|---|
$phraseIDArray | ||
$identifier |


buildSearchPartArray(
$phraseTextArray, $nonPhraseText, $wordIDHash, $wildIDArray, $identifier
=
false
)
:
void
Parameters
Name | Type | Description |
---|---|---|
$phraseTextArray | ||
$nonPhraseText | ||
$wordIDHash | ||
$wildIDArray | ||
$identifier |


buildSearchPartArrayForPhrases(
$phraseTextArray, $wordIDHash, $identifier
=
false
)
:
void
Parameters
Name | Type | Description |
---|---|---|
$phraseTextArray | ||
$wordIDHash | ||
$identifier |


buildSearchPartArrayForWords(
$nonPhraseText, $wordIDHash, $wildIDArray, $identifier
=
false
)
:
void
Parameters
Name | Type | Description |
---|---|---|
$nonPhraseText | ||
$wordIDHash | ||
$wildIDArray | ||
$identifier |


buildSqlPartForWord(
$wordID, $identifier
=
false
)
:
void
Parameters
Name | Type | Description |
---|---|---|
$wordID | ||
$identifier |


buildTempTablesForFullTextSearch(
$searchPartsArray, $generalFilterList
=
array()
)
:
void
Parameters
Name | Type | Description |
---|---|---|
$searchPartsArray | ||
$generalFilterList |


buildWordIDArray(
$indexArrayOnlyWords
)
:
void
Parameters
Name | Type | Description |
---|---|---|
$indexArrayOnlyWords |


callMethod(
$methodName, $parameterArray
)
:
void
Parameters
Name | Type | Description |
---|---|---|
$methodName | ||
$parameterArray |


indexWords(
$contentObject, $indexArray, $wordIDArray, $placement
=
0
)
:
void
Parameters
Name | Type | Description |
---|---|---|
$contentObject | ||
$indexArray | ||
$wordIDArray | ||
$placement |


normalizeText(
$text, $isMetaData
=
false
)
:
void
Parameters
Name | Type | Description |
---|---|---|
$text | ||
$isMetaData |


removeObject(
\eZContentObject $contentObject, bool $commit
=
true
)
:
bool
Removes object $contentObject from the search database.
Parameters
Returns
Name | Type | Description |
---|---|---|
$contentObject | \eZContentObject | the content object to remove |
$commit | bool | Whether to commit after removing the object |
Type | Description |
---|---|
bool | True if the operation succeed. |


saveCreatedTempTableName(
$index, $tableName
)
:
void
Parameters
Name | Type | Description |
---|---|---|
$index | ||
$tableName |


search(
$searchText, $params
=
array(), $searchTypes
=
array()
)
:
void
Parameters
Name | Type | Description |
---|---|---|
$searchText | ||
$params | ||
$searchTypes |


searchAttributeByIdentifierRange(
$searchParams
)
:
void
Parameters
Name | Type | Description |
---|---|---|
$searchParams |


searchAttributeIntegersByIdentifier(
$searchParams
)
:
void
Parameters
Name | Type | Description |
---|---|---|
$searchParams |