Skip to main content

AlgoliaRecord

This class defines the structure of a record to be indexed in Algolia, specifying the required fields for search and ranking. It includes attributes for the textual content, page identification, absolute URL, title, unique object identifier, and numerical rank.

Attributes

AttributeTypeDescription
contentstrThe full text content of the page to be indexed for search retrieval.
pageIDstrUnique identifier for the source page used to group multiple records belonging to the same document.
abs_urlstrThe absolute URL pointing to the specific location of the content on the live website.
titlestrThe display title of the page or section represented by this record.
objectIDstrThe unique identifier required by Algolia to distinguish this specific record within the index.
rankintNumerical value used to influence the search relevance and ordering of the record in results.