Contents
- 1 Can a facet be used as a query parameter?
- 2 How does a filter work in facet search?
- 3 Where is the submit button on facet search?
- 4 When do you use filters in faceted navigation?
- 5 Do you need a filter on search results?
- 6 What do you need to know about faceted navigation?
- 7 Why does the search API not support the fields option?
- 8 Can you have more than one faceted navigation hierarchy?
Can a facet be used as a query parameter?
A facet is a query parameter, but do not confuse it with query input. It is never used as selection criteria in a query. Instead, think of facet query parameters as inputs to the navigation structure that comes back in the response.
How does a filter work in facet search?
By clicking a link, a customer can either select a single value for a specific filter or drill down a level in a taxonomy, like a category or a department hierarchy. Every time a user clicks a filter link, checkbox, radio button, etc., the page refreshes (or the results refresh via AJAX), updating the search results.
When to use parallel selection in facet search?
The Parallel Selection approach works well when search is quite slow and a probability of complex selection (many options) is high. For parallel selection, you can face the problem of dependent facets. Some combinations of the facet values would return no results, and you need to mark those in the form somehow.
Also, if the list of facets is taller than the visible portion of the page, the “Submit” button, which is generally placed at the top or bottom of the page, will get pushed out of the viewable screen, thus causing the User to not even see that there is a Submit button at all.
Some search experiences, such as faceted navigation, depend on filters as part of the implementation, but you can use filters anytime you want to scope a query to specific values. If instead your goal is to scope a query to specific fields, there are alternative methods, described below.
How to use search.ismatchscoring as a filter?
This usage pattern is achieved through the search.ismatchscoring function. You can also use the non-scoring version, search.ismatch. It is also possible to combine full-text search via search.ismatchscoring with filters using and instead of or, but this is functionally equivalent to using the search and $filter parameters in a search request.
Do you need a filter on search results?
Numeric fields are retrievable and can appear in search results, but they are not searchable (subject to full text search) individually. If you need selection criteria based on numeric data, use a filter. If you want a narrowing effect in your search results, filters are not your only choice.
If you’re new to search development, the best way to think of faceted navigation is that it shows the possibilities for self-directed search. It’s a type of drill-down search experience, based on predefined filters, used for quickly narrowing down search results through point-and-click actions.
How is faceted navigation built in Cognitive Search?
In Azure Cognitive Search, faceted navigation is built at query time, using fields that you previously attributed in your schema. In the queries that your application builds, a query must send facet query parameters to get the available facet filter values for that document result set.
Why does the search API not support the fields option?
The search API does not technically support these query options because the behavior is expressed in the POST body. For all these entity types, specifying the fields property reduces the number of properties returned in the response, optimizing the payload over the wire.
By default you can only have one level of faceted navigation. As noted, there is no direct support for nesting facets in a hierarchy. By default, faceted navigation in Azure Cognitive Search only supports one level of filters. However, workarounds do exist.
What is the purpose of faceted navigation in search?
Faceted navigation is a filtering mechanism that provides self-directed drilldown navigation in search applications. The term ‘faceted navigation’ may be unfamiliar, but you’ve probably used it before. As the following example shows, faceted navigation is nothing more than the categories used to filter results.