IgnorePlurals is used in conjunction with the queryLanguages setting. Treats singular, plurals, and other forms of declensions as matching terms. Splits compound words into their composing atoms in the query. String used as an ellipsis indicator when a snippet is truncated. Restrict highlighting and snippeting to items that matched the query. Whether to highlight and snippet the original word that matches the synonym or the synonym itself. The HTML string to insert before the highlighted parts in all highlight and snippet results. The HTML string to insert after the highlighted parts in all highlight and snippet results. List of attributes to snippet, with an optional maximum number of words to snippet. Highlighting and Snippeting -attributesToHighlight Minimum radius (in meters) used for a geo search when aroundRadius is not set. Search inside a polygon (in geo coordinates). Search inside a rectangular area (in geo coordinates). aroundRadiusĭefine the maximum radius for a geo search (in meters). Precision of geo search (in meters), to add grouping by geo location to the ranking formula. Search for entries around a given location automatically computed from the requester’s IP address. Search for entries around a central geolocation, enabling a geo search within a circular area. sumOrFiltersScoresĭetermines how to calculate the total score for filtering. When Dynamic Re-Ranking is enabled, only records that match these filters will be impacted by Dynamic Re-Ranking. optionalFiltersĬreate filters for ranking purposes, where records that match the filter are ranked higher, or lower in the case of a negative optional filter. numericFiltersįilter on numeric attributes. Filtering -facetFiltersįilter the query with numeric, facet and/or tag filters. sortFacetValuesByĬontrols how facet values are fetched. Maximum number of facet values to return for each facet during a regular search. facetingAfterDistinctįorce faceting to be applied after de-duplication (via the Distinct setting). The complete list of attributes that will be used for faceting. Restricts a given query to look in only a subset of your searchable attributes. This parameter controls which attributes to retrieve and which not to retrieve. clickAnalyticsĮnable the Click Analytics feature. List of tags to apply to the query for analytics purposes. Whether the current query will be taken into account in the Analytics. Whether to take into account an index’s synonyms for a particular search. This parameters applies to search and browse queries. responseFieldsĬhoose which fields to return in the API response. Can be set via the settings for a default value and can be overridden via rules. renderingContentĬontent defining how the search interface should be rendered. Whether to include or exclude a query from the processing-time percentile computation. Precision of the proximity ranking criterion. For performance reasons, the maximum allowed number of returned values is 100. Maximum number of facet hits to return during a search for facet values. Whether this search should use AI Re-Ranking. Whether this search should participate in running AB tests. distinctĮnables de-duplication or grouping of results. When attribute is ranked above proximity in your ranking formula, proximity is used to select which searchable attribute is matched in the attribute ranking stage. json file $ algolia search BOOKS -query "tolkien" -output = "jsonpath=" > books.jsonĪdvanced -attributeCriteriaComputedByMinProximity # Search for objects in the "BOOKS" index matching the query "tolkien" and only export the results to a. json file $ algolia search BOOKS -query "tolkien" > books.json # Search for objects in the "BOOKS" index matching the query "tolkien" and export the response to a. # Search for objects in the "BOOKS" index matching the query "tolkien" $ algolia search BOOKS -query "tolkien" # Search for objects in the "BOOKS" index matching the query "tolkien" with filters $ algolia search BOOKS -query "tolkien" -filters "'(category:Book OR category:Ebook) AND _tags:published'" # Search for objects in the "BOOKS" index matching the query "tolkien" while setting the number of hits per page and specifying the page to retrieve $ algolia search BOOKS -query "tolkien" -hitsPer -page 4
0 Comments
Leave a Reply. |