commonMain.com.algolia.search.client.Index.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of algoliasearch-client-kotlin-jvm Show documentation
Show all versions of algoliasearch-client-kotlin-jvm Show documentation
"Algolia is a powerful search-as-a-service solution, made easy to use with API clients, UI libraries, and pre-built integrations. Algolia API Client for Kotlin lets you easily use the Algolia Search REST API from your JVM project, such as Android or backend implementations."
package com.algolia.search.client
import com.algolia.search.endpoint.EndpointAdvanced
import com.algolia.search.endpoint.EndpointAnswers
import com.algolia.search.endpoint.EndpointIndex
import com.algolia.search.endpoint.EndpointIndexing
import com.algolia.search.endpoint.EndpointRule
import com.algolia.search.endpoint.EndpointSearch
import com.algolia.search.endpoint.EndpointSettings
import com.algolia.search.endpoint.EndpointSynonym
import com.algolia.search.model.IndexName
import com.algolia.search.model.response.ResponseSearch
import com.algolia.search.model.response.ResponseSearchRules
import com.algolia.search.model.response.ResponseSearchSynonyms
import com.algolia.search.model.rule.Rule
import com.algolia.search.model.rule.RuleQuery
import com.algolia.search.model.search.Query
import com.algolia.search.model.synonym.Synonym
import com.algolia.search.model.synonym.SynonymQuery
import com.algolia.search.transport.RequestOptions
/**
* The main entry point for performing operations on a single index.
*/
public interface Index :
EndpointSearch,
EndpointSettings,
EndpointAdvanced,
EndpointIndex,
EndpointIndexing,
EndpointSynonym,
EndpointRule,
EndpointAnswers {
/**
* Index name.
*/
override val indexName: IndexName
/**
* Iterate over all [Rule] in the index.
*
* @see [searchRules]
*
* @param query The [RuleQuery] used to search.
* @param requestOptions Configure request locally with [RequestOptions]
*/
public suspend fun browseRules(
query: RuleQuery = RuleQuery(),
requestOptions: RequestOptions? = null,
): List
/**
* Iterate over all [Synonym] in the index.
*
* @see [searchSynonyms]
*
* @param query The [SynonymQuery] used to search.
* @param requestOptions Configure request locally with [RequestOptions]
*/
public suspend fun browseSynonyms(
query: SynonymQuery = SynonymQuery(),
requestOptions: RequestOptions? = null,
): List
/**
* Iterate over all objects in the index.
*
* @see [browse]
*
* @param query The [Query] used to search.
* @param requestOptions Configure request locally with [RequestOptions]
*/
public suspend fun browseObjects(
query: Query = Query(),
requestOptions: RequestOptions? = null,
): List
public companion object
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy