explainFilter

Function

Generate an explanation if a specific result passes the filter's criteria

Parameters

Parameter Type Default Notes
filter Required IFilter
result Required GenericResult
requestOptions Required IRequestOptions

Available requestOptions

Property Type Notes

Returns

Property Type Notes
filter IFilter

Copy of the Filter

matched boolean

Did the filter match the query?

reasons IPredicateExplanation[]

Array of explanations for each predicate in the Filter


Function defined in common/src/search/_internal/explainFilter.ts:15