Skip to main content

Usage

The query parameter represents the query string Algolia matches against your index. For an overview of how Algolia interprets and ranks queries, see Relevance overview.

Formatting rules

  • An empty string ("") returns all records, sorted by customRanking.
  • Query strings can be up to 512 bytes long.
  • Boolean operators (AND, OR, NOT) aren’t supported in the query string.
  • Multi-word queries require all words to match. For example, hot dog only returns records containing both hot and dog.

Example

Current API clients

var response = await client.SearchSingleIndexAsync<Hit>(
  "INDEX_NAME",
  new SearchParams(new SearchParamsObject { Query = "phone" })
);
index.search(
  new Query("shirt")
);
Last modified on March 16, 2026