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.

A guide for refreshing the search interface

See original GitHub issue

see https://github.com/algolia/vue-instantsearch/issues/241#issuecomment-320491382

This will be a guide on how to create a custom component which calls searchStore.refresh() at some point.

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Reactions:4
  • Comments:11 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
gqoewcommented, May 9, 2020

Hi @Haroenv

Thank you for updating this guide. I was wondering if there is an alternative way create a method() to refresh the search interface? It would allow to refresh results without having to create a new component and to refresh only after a set of user actions success (add, delete, update documents in firestore), instead of having a refresh button or a periodic update.

Something like:

methods: {
  refreshResults () {
      store.clearCache()
      store.refresh()
  },

I use a basic config:

      <ais-instant-search :search-client="searchClient" index-name="index">
        <ais-search-box/>
        <ais-hits>
        ...
        </ais-hits>
      </ais-instant-search>
    </div>

Not sure how to access the store though.

Thanks!

1reaction
abattenburgcommented, Jan 16, 2018

Never mind made a silly mistake and it’s working just fine. Great to know this feature has been added!

Read more comments on GitHub >

github_iconTop Results From Across the Web

Searchme : A Refreshing Search Interface
Now, a search company is working on the interface front to provide a refreshing approach to presentation of search results.
Read more >
Refreshed guidelines for site owners - Google Developers
Since then we added a lot of information to these guidelines to help site owners build the site that's right for their users...
Read more >
Refresh the Page in JavaScript – JS Reload Window Tutorial
In this article, we will learn how to reload a webpage in JavaScript, as well as see some other situations where we might...
Read more >
Refresh Behavior in Interfaces - Appian 22.4
Refresh on variable change: Refresh the data when the specified variable (or variables) change. Refresh after: Refresh the data each time a record...
Read more >
Creating a Search Interface - Android Developers
When you're ready to add search functionality to your application, Android helps you implement the user interface with either a search dialog that...
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