PHP Class spec\Spatie\SearchIndex\SearchIndexHandlers\AlgoliaSpec

Inheritance: extends PhpSpec\ObjectBehavior
Mostrar archivo Open project: spatie/searchindex

Protected Properties

Property Type Description
$indexName
$searchableBody
$searchableId
$searchableObject
$searchableType

Public Methods

Method Description
__construct ( )
it_adds_a_searchable_object_to_the_search_index ( Index $index, Spatie\SearchIndex\Searchable $searchableObject )
it_adds_multiple_searchable_objects_to_the_search_index ( Index $index, Spatie\SearchIndex\Searchable $searchableObject )
it_can_clear_the_index ( Index $index )
it_can_get_search_results ( Index $index )
it_can_get_search_results_using_a_search_object ( Index $index )
it_can_get_search_results_using_an_array ( Index $index )
it_can_get_search_results_using_an_array_without_a_query_key ( Index $index )
it_is_initializable ( )
it_removes_a_searchable_object_from_the_index ( Index $index, Spatie\SearchIndex\Searchable $searchableObject )
it_removes_an_object_from_the_index_by_type_and_id ( Index $index )
let ( Client $algoliaClient, Spatie\SearchIndex\Searchable $searchableObject, Index $index )

Method Details

__construct() public method

public __construct ( )

it_adds_a_searchable_object_to_the_search_index() public method

public it_adds_a_searchable_object_to_the_search_index ( Index $index, Spatie\SearchIndex\Searchable $searchableObject )
$index AlgoliaSearch\Index
$searchableObject Spatie\SearchIndex\Searchable

it_adds_multiple_searchable_objects_to_the_search_index() public method

public it_adds_multiple_searchable_objects_to_the_search_index ( Index $index, Spatie\SearchIndex\Searchable $searchableObject )
$index AlgoliaSearch\Index
$searchableObject Spatie\SearchIndex\Searchable

it_can_clear_the_index() public method

public it_can_clear_the_index ( Index $index )
$index AlgoliaSearch\Index

it_can_get_search_results() public method

public it_can_get_search_results ( Index $index )
$index AlgoliaSearch\Index

it_can_get_search_results_using_a_search_object() public method

public it_can_get_search_results_using_a_search_object ( Index $index )
$index AlgoliaSearch\Index

it_can_get_search_results_using_an_array() public method

public it_can_get_search_results_using_an_array ( Index $index )
$index AlgoliaSearch\Index

it_can_get_search_results_using_an_array_without_a_query_key() public method

public it_can_get_search_results_using_an_array_without_a_query_key ( Index $index )
$index AlgoliaSearch\Index

it_is_initializable() public method

public it_is_initializable ( )

it_removes_a_searchable_object_from_the_index() public method

public it_removes_a_searchable_object_from_the_index ( Index $index, Spatie\SearchIndex\Searchable $searchableObject )
$index AlgoliaSearch\Index
$searchableObject Spatie\SearchIndex\Searchable

it_removes_an_object_from_the_index_by_type_and_id() public method

public it_removes_an_object_from_the_index_by_type_and_id ( Index $index )
$index AlgoliaSearch\Index

let() public method

public let ( Client $algoliaClient, Spatie\SearchIndex\Searchable $searchableObject, Index $index )
$algoliaClient AlgoliaSearch\Client
$searchableObject Spatie\SearchIndex\Searchable
$index AlgoliaSearch\Index

Property Details

$indexName protected_oe property

protected $indexName

$searchableBody protected_oe property

protected $searchableBody

$searchableId protected_oe property

protected $searchableId

$searchableObject protected_oe property

protected $searchableObject

$searchableType protected_oe property

protected $searchableType