Promptary
Frontend · Search & Filtering

Search & Filtering developer concepts

Learn 38 Search & Filtering concepts for Frontend development, with definitions, aliases, and ready-to-use AI prompts.

Search entry

Query assistance

Search autocomplete

A combobox popup that suggests matching queries or destinations while typing.

Also known as
Search suggestions, Query autocomplete, Predictive search
AI prompt
Create an accessible search combobox with list autocomplete, aria-expanded, aria-controls and aria-activedescendant, keyboard navigation, highlighted matching text, Enter to accept, Escape to dismiss without losing the typed query, and loading plus no-suggestion states.

Recent searches

A list of a person’s latest queries shown before they begin typing.

Also known as
Search recents, Query history, Previous searches
AI prompt
Show recent searches when the search field is empty and focused. Make each query keyboard-selectable, include an individually labelled remove action, offer Clear recent searches, respect private browsing and sensitive-query policies, and never expose shared-device history without user control.

Inline query completion

Predictive text completes the remainder of a likely query inside the search field.

Also known as
Ghost text completion, Inline autocomplete, Predictive completion
AI prompt
Implement inline query completion using the ARIA combobox inline-autocomplete model. Visually select only the predicted remainder, keep the user-entered portion editable, accept with an explicit keyboard action, expose the correct aria-autocomplete value, and remove the prediction when it no longer matches.

Spelling suggestion

A correction proposes a likely intended query while preserving the original terms.

Also known as
Did you mean, Query correction, Typo suggestion
AI prompt
Add a Did you mean suggestion above search results when confidence is high. Keep the original query visible, make the corrected phrase a link or button, state whether results currently use the original or corrected query, and provide a way to search the exact original terms.

Search tokens

Editable query tokens express structured terms such as sender, status, or file type.

Also known as
Query chips, Search facets in field, Tokenized search
AI prompt
Create a tokenized search field supporting structured terms such as from:, status:, and type:. Make tokens individually focusable and removable, preserve a normal text-entry position, support Backspace deliberately, expose each token’s meaning, and serialize the query consistently.

Advanced search builder

A structured interface combines multiple fields and operators into a precise query.

Also known as
Query builder, Advanced search, Boolean search form
AI prompt
Build an optional advanced-search form with field, operator, and value rows; AND and OR grouping; add and remove controls; a plain-language query summary; validation; reset; and a simple-search path. Do not make advanced search the default entry point.

Search history controls

Controls let people review, remove, pause, or clear stored search activity.

Also known as
Manage search history, Query privacy controls, Search activity
AI prompt
Create search-history controls with dated queries, individually labelled delete buttons, a clear-all action with appropriate confirmation, a pause-history setting, and an explanation of storage scope. Keep private or sensitive queries from appearing unexpectedly.

Results & states

Search results page

A dedicated view presents ranked matches for the submitted query.

Also known as
Results listing, Search results, SERP
AI prompt
Create a search-results page that preserves the submitted query, uses one clear page heading, lists relevant results with meaningful linked titles and snippets, exposes result count and sort controls, supports refinement, and keeps pagination or load-more navigation predictable.

Results count and query summary

A concise status states how many matches were found and for which query.

Also known as
Result count, Query summary, Match total
AI prompt
Show a concise result summary such as 24 results for accessibility. Keep the query visually distinct, update the count after searching or filtering, announce meaningful changes through a polite live region, and avoid announcing on every keystroke before results settle.

Highlighted query matches

Matching words are emphasized in result titles or snippets to aid scanning.

Also known as
Search highlighting, Match emphasis, Highlighted terms
AI prompt
Highlight matching query terms in result titles and snippets using semantic mark elements. Preserve readable contrast, escape user input safely, highlight meaningful whole matches without fragmenting screen-reader output, and do not rely on highlighting alone to explain relevance.

Grouped search results

Matches are organized under meaningful types such as projects, people, and files.

Also known as
Categorized results, Federated results, Result groups
AI prompt
Group search results by meaningful content type with semantic headings, a result count for each group, consistent row structure, and View all links when truncated. Keep overall relevance understandable and avoid presenting empty groups.

Search result snippet

A compact result combines a linked title, context, excerpt, and metadata.

Also known as
Result preview, Search hit, Result card
AI prompt
Create a reusable search-result snippet with a descriptive linked title, breadcrumb or content type, concise context around the match, useful metadata, safe query highlighting, and a generous link target without making unrelated actions part of the same link.

Search loading state

A pending state communicates that results are being retrieved or recalculated.

Also known as
Searching state, Result skeleton, Search progress
AI prompt
Design a search loading state that keeps the query visible, indicates progress without blocking typing, preserves previous results when appropriate, marks the results region aria-busy, cancels stale requests, and replaces skeletons with results without layout jumps.

No search results

An empty state explains that the query found no matches and suggests recovery actions.

Also known as
Zero results, No matches, Empty search
AI prompt
Create a no-results state that repeats the query, confirms no matches were found, suggests checking spelling or using broader terms, offers a clear-filters action when filters are active, and avoids implying that the entire system contains no content.

Search error state

A recoverable state explains that search failed rather than returning zero matches.

Also known as
Search failed, Results error, Query error
AI prompt
Create a search error state distinct from no results. Preserve the query and filters, explain the temporary problem in plain language, provide a Retry button, retain any safe previous results when useful, and expose technical details only through an optional disclosure.

Filtering & ordering

Filter bar

A horizontal set of high-priority refinements sits near the result collection.

Also known as
Refinement bar, Filter toolbar, Horizontal filters
AI prompt
Create a responsive filter bar containing the most-used refinements, active-filter count, clear action, and sort control. Use native labelled controls, keep applied state visible, wrap or transform appropriately on narrow screens, and update the result summary after changes.

Faceted filter sidebar

A side panel narrows results across several attributes with available counts.

Also known as
Facet navigation, Filter sidebar, Refinement panel
AI prompt
Build a faceted filter sidebar with semantic groups, checkbox options, available-result counts, collapsed long groups, applied-state summary, and clear actions. Keep zero-count choices understandable, preserve scroll position, and provide an equivalent mobile presentation.

Mobile filter drawer

A compact button opens filtering controls in a mobile-appropriate panel.

Also known as
Filter sheet, Mobile facets, Filter panel
AI prompt
Create a mobile filter drawer opened by a button showing the active-filter count. Give the panel a heading, Close and Clear controls, labelled filter groups, an Apply button with prospective result count, focus management, Escape handling, and restored focus on close.

Filter dropdown

A compact labelled control exposes choices for one refinement dimension.

Also known as
Filter select, Refinement dropdown, Attribute filter
AI prompt
Create a labelled filter dropdown for one attribute using a native select when one choice is allowed, or an accessible disclosure with checkboxes for multiple choices. Show applied state in the trigger, preserve keyboard behavior, and provide a clear option.

Quick filter chips

A short row of common refinements can be toggled directly above results.

Also known as
Filter pills, Toggle filters, Quick refinements
AI prompt
Create quick-filter chips for a small set of common independent refinements. Use toggle buttons with aria-pressed, visible selected and focus states, readable labels, horizontal scrolling only when necessary, and a live result-count update after each change.

Applied filter chips

Removable tokens summarize every refinement currently affecting the results.

Also known as
Active filter tags, Selected facets, Filter tokens
AI prompt
Display applied filters as removable chips near the result summary. Give every remove button a specific accessible name, preserve the remaining filters and query, include Clear all when several are active, and return focus predictably after a chip disappears.

Numeric range filter

Minimum and maximum controls restrict results to a numeric interval.

Also known as
Price range, Min-max filter, Range refinement
AI prompt
Create a numeric range filter with labelled minimum and maximum inputs, optional synchronized slider controls, units, valid range constraints, localized formatting, an explicit Apply action when updates are expensive, and a readable active-range summary.

Date range filter

Start and end dates limit results to a specific time period.

Also known as
Time-period filter, Date refinement, From-to dates
AI prompt
Create a date-range filter with separately labelled start and end inputs, locale-aware hints, valid ordering, inclusive-boundary explanation, useful presets, clear and apply actions, and a readable summary of the active period.

Hierarchical filter

Expandable parent and child categories refine results within a taxonomy.

Also known as
Category tree filter, Nested facet, Taxonomy filter
AI prompt
Build a hierarchical category filter with expandable branches, parent and child selection rules, indeterminate states where appropriate, result counts, keyboard-operable disclosure controls, visible ancestry, and a concise summary of selected paths.

Dependent filters

Available choices update because an earlier filter changes what values remain valid.

Also known as
Cascading filters, Conditional facets, Linked filters
AI prompt
Create dependent Country, State, and City filters whose options update in sequence. Disable unavailable controls with an explanation, clear invalid child values after confirmation when needed, show loading state, preserve valid selections, and announce meaningful availability changes.

Clear all filters

A single action removes every applied refinement while retaining the search context.

Also known as
Reset filters, Remove all refinements, Clear facets
AI prompt
Add a Clear all filters button visible only when refinements are active. Keep the search query unless the label explicitly includes it, reset controls and URL parameters consistently, update results and counts, announce completion, and return focus to a stable location.

Results sort

A labelled control changes the ordering of the same result set.

Also known as
Sort selector, Order results, Sort by
AI prompt
Create a Sort by control with meaningful options such as Relevance, Newest, and Name. Use a native labelled select, preserve the query and filters, update the URL where appropriate, return to the start of paginated results, and announce the new ordering.

Saved filter view

A named reusable view restores a chosen query, filters, and sort order.

Also known as
Saved search, Filter preset, Smart view
AI prompt
Let users save the current query, filters, visible columns, and sort as a named view. Show exactly what will be saved, validate duplicate names, support rename and delete separately, indicate the active saved view, and distinguish personal from shared presets.

No filtered results

An empty state explains that content exists but the active refinements exclude it.

Also known as
Filter empty state, No matching filters, Zero filtered items
AI prompt
Create a filtered-empty state distinct from a truly empty collection. State that no items match the current filters, show the active refinements, provide Clear all and targeted removal actions, preserve the search query, and never suggest creating new content when existing content is merely hidden.