question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Ability to prevent filters resetting on new searches at an individual filter level

See original GitHub issue

When a new search is performed, do NOT clear this filter. This should be an option on facets, and also an option on setFilter / addFilter actions.

This is mentioned here:

https://github.com/elastic/search-www.elastic.co/issues/29

ex.

<Facet field="state" sticky />
setFilter('category', 'all', { sticky: true })

It’s important to note that you can currently take an all-or-nothing approach when updating the search term using the shouldClearFilters flag. The only current limitation here is that you cannot selectively choose to preserve or remove individual filters.

Issue Analytics

  • State:open
  • Created 5 years ago
  • Reactions:5
  • Comments:7 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
JasonStoltzcommented, Jul 1, 2021

If you want to preserve all filters on subsequent searches you can use the shouldClearFilters option on the SearchBox component. Just set it to false. Let me know if that works for your use case or not.

0reactions
jcla490commented, Jul 2, 2021

I figured this out, i put it in the wrongggggg place

Read more comments on GitHub >

github_iconTop Results From Across the Web

The Bookmark feature will reset the report filter on PBI Service
Simply right-click the bookmark and uncheck 'data' category, you will get the report/page level filters kept when you jump between bookmarks. In my...
Read more >
Power BI Visualization Tip: Hide or Lock the Filter for Users
Learn how to stop the user from being able to change the filter or view the filter in a Power BI report using...
Read more >
Pivot table filters reset when erasing or replacing data
I intend to save multiple copies of the sheet for individuals to use, then pull all the data into a master workbook. Here's...
Read more >
Video: Advanced filter details - Microsoft Support
Training: You can use the Advanced Filter to create more powerful filters, such as filtering for unique records and using operators such as...
Read more >
Filtering Dashboards (EX) - Qualtrics
If a field is marked as sensitive in your Dashboard Data and the dashboard user has the permission to View Sensitive Fields disabled,...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found