SilverStripe\FullTextSearch\Tests\SolrIndexTest
Synopsis
class SolrIndexTest
extends SapphireTest
{
- // members
- protected boolean $usesDatabase = true;
- protected static array $extra_dataobjects = ;
- // methods
- public void testFieldDataHasOne()
- public void testFieldDataHasMany()
- public void testFieldDataManyMany()
- public void testFieldDataAmbiguousHasMany()
- public void testFieldDataAmbiguousManyMany()
- public void testFieldDataAmbiguousManyManyInherited()
- public void testBoostedQuery()
- public void testBoostedField()
- public void testHighlightQueryOnBoost()
- public void testIndexExcludesNullValues()
- public void testAddFieldExtraOptions()
- public void testAddAnalyzer()
- public void testAddCopyField()
- public void testStoredFields()
- public void testSanitiseClassName()
- public void testGetIndexName()
- public void testGetIndexNameWithPrefixAndSuffixFromEnvironment()
- public void testShowInSearch()
- public void testCanView()
- protected void createSolrDocKey()
- protected void getFakeRawSolrResponse()
Hierarchy
Extends
- SilverStripe\Dev\SapphireTest
Members
protected
- $extra_dataobjects
- $usesDatabase
Methods
protected
public
- testAddAnalyzer()
- testAddCopyField()
- testAddFieldExtraOptions()
- testBoostedField() — Test boosting on field schema (via queried fields parameter)
- testBoostedQuery() — Test boosting on SearchQuery
- testCanView() — Test that canView() check is used to exclude DataObjects from being added to the index
- testFieldDataAmbiguousHasMany()
- testFieldDataAmbiguousManyMany()
- testFieldDataAmbiguousManyManyInherited()
- testFieldDataHasMany()
- testFieldDataHasOne()
- testFieldDataManyMany()
- testGetIndexName()
- testGetIndexNameWithPrefixAndSuffixFromEnvironment()
- testHighlightQueryOnBoost()
- testIndexExcludesNullValues()
- testSanitiseClassName()
- testShowInSearch() — Test that ShowInSearch and getShowInSearch() exclude DataObjects from being added to the index
- testStoredFields() — Tests the setting of the 'stored' flag