Constructors
constructor
new Faceted Search ( searchQuery , emptyParameterQuery ? , modifiers ? ) : FacetedSearch
Parameters
searchQuery : Query
Optional
emptyParameterQuery : Query
Optional
modifiers : Query []
Properties
Private
Optional
_active Modifier
Private
Optional
_modifiers
Private
Optional
empty Parameter Query
empty Parameter Query ?: Query
Private
Optional
modifiers
Methods
add Facet
add Facet ( endpoint , type ? , resetOnQueryChange ? , filterEndpointPostfix ? , filterEndpointParameterName ? ) : void
Parameters
endpoint : string
type : FacetType = FacetType.single
resetOnQueryChange : boolean = true
filterEndpointPostfix : string = ':FILTER'
filterEndpointParameterName : string = 'value'
Returns void
clear Facet Selection
clear Facet Selection ( facetEndpoint ? ) : void
Parameters
Optional
facetEndpoint : string
Returns void
clear Parameters
clear Parameters ( ) : void
Returns void
get Facet Query
get Facet Query ( facetEndpoint , excludeModifier ? ) : Query []
Parameters
facetEndpoint : string
excludeModifier : boolean = false
get Modifier
get Modifier ( ) : undefined | Query
Returns undefined | Query
get Results Query
get Results Query ( excludeModifier ? ) : Query []
Parameters
excludeModifier : boolean = false
set Facet Selection
set Facet Selection ( facetEndpoint , selection ) : void
Parameters
facetEndpoint : string
selection : string | string []
Returns void
set Modifier
set Modifier ( modifier ) : void
Parameters
modifier : undefined | Query
Returns void
set Parameter
set Parameter ( name , value ) : void
Parameters
name : string
value : string
Returns void
set Search Query
set Search Query ( query ) : void
Returns void
Associate Query objects with each other in a faceted search setup.