Skip to main content

Documentation Index

Fetch the complete documentation index at: https://doc.lucidworks.com/llms.txt

Use this file to discover all available pages before exploring further.

Description

Returns the first filter object from the query or facet that matches the name and optionally the value also

Usage

In HTML Template Binding

{{ hasFilter_expression | hasFilter:field[:value] }}

In JavaScript

$filter('hasFilter')(query, field[, value])

Parameters

ParamTypeDetails
querystringThe query object
fieldnumberThe name of the filter
value (optional)numberThe value of the filter