FulltextSearchExtension
extends Extension
in package
Class \Firesphere\SolrCompatibility\Extensions\FulltextSearchExtension Backward compatibility stubs for the Full text search module
Table of Contents
Properties
Methods
- addFulltextFields() : mixed
- Add a Fulltext Field
- initToYml() : void
- Generate a yml version of the init method indexes
- search() : SearchResult|ArrayData|mixed
- Convert the old search method to the new BaseIndex doSearch methods
- updateSearchResults() : void
- Convert the SearchResult class to a Full text search compatible ArrayData
- getCollatedNice() : string
- Create a spellcheck string that's not the literal collation with Solr query parts
Properties
$owner
public
BaseIndex|FulltextSearchExtension
$owner
Methods
addFulltextFields()
Add a Fulltext Field
public
addFulltextFields([bool $includeSubclasses = true ]) : mixed
Parameters
- $includeSubclasses : bool = true
-
Compatibility mode, not actually used
Tags
initToYml()
Generate a yml version of the init method indexes
public
initToYml() : void
search()
Convert the old search method to the new BaseIndex doSearch methods
public
search(BaseQuery $query[, int $start = 0 ][, int $limit = 10 ][, array<string|int, mixed> $params = [] ][, bool $spellcheck = null ]) : SearchResult|ArrayData|mixed
Parameters
- $query : BaseQuery
- $start : int = 0
-
deprecated in favour of $query, exists for backward compatibility with FTS
- $limit : int = 10
-
deprecated in favour of $query, exists for backward compatibility with FTS
- $params : array<string|int, mixed> = []
-
deprecated in favour of $query, exists for backward compatibility with FTS
- $spellcheck : bool = null
-
deprecated in favour of #query, exists for backward compatibility with FTS
Tags
Return values
SearchResult|ArrayData|mixedupdateSearchResults()
Convert the SearchResult class to a Full text search compatible ArrayData
public
updateSearchResults(SearchResult|ArrayData &$results) : void
Parameters
- $results : SearchResult|ArrayData
getCollatedNice()
Create a spellcheck string that's not the literal collation with Solr query parts
protected
getCollatedNice(string $spellcheck) : string
Parameters
- $spellcheck : string
Return values
string —mixed