SilverStripe solr Search

FulltextSearchExtension extends Extension

Class \Firesphere\SolrCompatibility\Extensions\FulltextSearchExtension Backward compatibility stubs for the Full text search module

Table of Contents

Properties

$owner  : BaseIndex|FulltextSearchExtension

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

Methods

addFulltextFields()

Add a Fulltext Field

public addFulltextFields([bool $includeSubclasses = true ]) : mixed
Parameters
$includeSubclasses : bool = true

Compatibility mode, not actually used

Tags
throws
ReflectionException
deprecated

Please use addAllFulltextFields(). IncludeSubClasses is not used anymore

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
throws
ValidationException
throws
GuzzleException
throws
ReflectionException
deprecated

This is used as an Fulltext Search compatibility method. Call doSearch instead with the correct Query

Return values
SearchResult|ArrayData|mixed

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


        
On this page

Search results