algoliasearch_lite library

Classes

AgentSegment
Represents a segment of algolia agent header.
ApiClient
An abstract class representing an API client with specific properties and options.
ApiKey
ApiRequest
Represents an API request to be sent to Algolia.
AutomaticFacetFilter
BannerImage
BannerImageUrl
BaseGetApiKeyResponse
BaseIndexSettings
BaseRecommendIndexSettings
BaseRecommendRequest
BaseRecommendSearchParams
BaseSearchParams
BaseSearchParamsWithoutQuery
BaseSearchResponse
BoughtTogetherQuery
BrowsePagination
BrowseParamsObject
BrowseResponse
ClientOptions
ConsequenceParams
ConsequenceQueryObject
Cursor
Edit
ErrorBase
Exhaustive
FacetHits
FacetOrdering
FacetStats
FallbackParams
FrequentlyBoughtTogether
GetApiKeyResponse
GetRecommendationsParams
GetRecommendationsResponse
HighlightResultOption
Hit
Host
Represents an Algolia host.
HttpRequest
Represents an Http request.
HttpResponse
Represents an Http response
IndexSettings
IndexSettingsAsSearchParams
IndexSettingsFacets
LookingSimilar
LookingSimilarQuery
MatchedGeoLocation
Params
Personalization
Range
RankingInfo
RecommendationsHits
RecommendationsResults
RecommendHit
RecommendIndexSettings
RecommendSearchParams
Redirect
RedirectRuleIndexData
RedirectRuleIndexMetadata
RedirectURL
RelatedProducts
RelatedQuery
RenderingContent
Requester
A contract Requester to define an interface for handling HTTP requests and responses.
RequestOptions
Represents options for configuring a request to an endpoint.
RetryStrategy
Component to run http requests with retry logic.
SearchClient
SearchForFacets
SearchForFacetsOptions
SearchForFacetValuesResponse
SearchForHits
SearchForHitsOptions
SearchHits
SearchMethodParams
SearchPagination
SearchParamsObject
SearchParamsQuery
SearchParamsString
SearchResponse
SearchResponses
SemanticSearch
SettingsResponse
SnippetResultOption
TrendingFacetHit
TrendingFacets
TrendingFacetsQuery
TrendingItems
TrendingItemsQuery
Value
Widgets
WithPrimary

Enums

Acl
Access control list permissions.
AdvancedSyntaxFeatures
AlternativesAsExact
AroundRadiusAll
Return all records with a valid _geoloc attribute. Don't filter by distance.
BooleanString
CallType
Indicate whether the HTTP call performed is of type read (GET) or write (POST, PUT ..). Used to determine which timeout duration to use.
EditType
Type of edit.
ExactOnSingleWordQuery
Determines how the Exact ranking criterion is computed when the search query has only one word. - attribute. The Exact ranking criterion is 1 if the query word and attribute value are the same. For example, a search for "road" will match the value "road", but not "road trip". - none. The Exact ranking criterion is ignored on single-word searches. - word. The Exact ranking criterion is 1 if the query word is found in the attribute value. The query word must have at least 3 characters and must not be a stop word. Only exact matches will be highlighted, partial and prefix matches won't.
FbtModel
Frequently bought together model. This model recommends items that have been purchased within 1 day with the item with the ID objectID.
LookingSimilarModel
Looking similar model. This model recommends items that look similar to the item with the ID objectID based on image attributes in your index.
MatchLevel
Whether the whole query string matches or only a part.
Mode
Search mode the index will use to query for results. This setting only applies to indices, for which Algolia enabled NeuralSearch for you.
QueryType
Determines if and how query words are interpreted as prefixes. By default, only the last query word is treated as a prefix (prefixLast). To turn off prefix search, use prefixNone. Avoid prefixAll, which treats all query words as prefixes. This might lead to counterintuitive results and makes your search slower. For more information, see Prefix searching.
RelatedModel
Related products or similar content model. This model recommends items that are similar to the item with the ID objectID. Similarity is determined from the user interactions and attributes.
RemoveWordsIfNoResults
Strategy for removing words from the query when it doesn't return any results. This helps to avoid returning empty search results. - none. No words are removed when a query doesn't return results. - lastWords. Treat the last (then second to last, then third to last) word as optional, until there are results or at most 5 words have been removed. - firstWords. Treat the first (then second, then third) word as optional, until there are results or at most 5 words have been removed. - allOptional. Treat all words as optional. For more information, see Remove words to improve results.
RequestMethod
Provides enumerated HTTP verbs
SearchStrategy
Strategy for multiple search queries: - none. Run all queries. - stopIfEnoughMatches. Run the queries one by one, stopping as soon as a query matches at least the hitsPerPage number of results.
SearchTypeDefault
  • default: perform a search query - facet searches for facet values.
  • SearchTypeFacet
  • default: perform a search query - facet searches for facet values.
  • SortRemainingBy
    Order of facet values that aren't explicitly positioned with the order setting. - count. Order remaining facet values by decreasing count. The count is the number of matching records containing this facet value. - alpha. Sort facet values alphabetically. - hidden. Don't show facet values that aren't explicitly positioned.
    SupportedLanguage
    ISO code for a supported language.
    TrendingFacetsModel
    Trending facet values model. This model recommends trending facet values for the specified facet attribute.
    TrendingItemsModel
    Trending items model. Trending items are determined from the number of conversion events collected on them.
    TypoToleranceEnum
  • min. Return matches with the lowest number of typos. For example, if you have matches without typos, only include those. But if there are no matches without typos (with 1 typo), include matches with 1 typo (2 typos). - strict. Return matches with the two lowest numbers of typos. With strict, the Typo ranking criterion is applied first in the ranking setting.
  • Exceptions / Errors

    AlgoliaApiException
    Exception thrown when the Algolia API returns an error.
    AlgoliaException
    Abstract base class for all Algolia exceptions.
    AlgoliaIOException
    Exception thrown when there is an input/output error during a request to the Algolia API.
    AlgoliaTimeoutException
    Exception thrown when a request to the Algolia API times out.
    AlgoliaWaitException
    Exception thrown when an error occurs during the wait strategy. For example: maximum number of retry exceeded.
    UnreachableHostsException
    Exception thrown when all hosts for the Algolia API are unreachable.