IndexableDataProviderEngine

interface IndexableDataProviderEngine

Provides a mechanism for search index changes in core layers. One core layer can be associated with several search engines.

Please note that even though in most cases execution of each operation is pretty fast, in some cases (when core layer is currently used by search engine or when >10000 records are being added) execution may take some time. Please, consider usage of this class from background thread.

Functions

clear
Link copied to clipboard
abstract fun clear()
Clears the whole search index.
remove
Link copied to clipboard
abstract fun remove(id: String)
Removes IndexableRecord with specified id from search index.
removeAll
Link copied to clipboard
abstract fun removeAll(ids: Iterable<String>)
Removes a bunch of IndexableRecord with specified ids from search index.
upsert
Link copied to clipboard
abstract fun upsert(record: IndexableRecord)
Insert or update existing IndexableRecord to search index.
upsertAll
Link copied to clipboard
abstract fun upsertAll(records: Iterable<IndexableRecord>)
Adds a bunch of IndexableRecord to search index.