-
Notifications
You must be signed in to change notification settings - Fork 468
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Export query result to a file? #334
Comments
It seems to me you would want to hook into the |
@knguyen0105 What @davidklebanoff is suggesting should work. There is one caveat (that I can think of) - your max export size (due to the result size cap in Elasticsearch) will be up to |
@siddharthlatest - For clarity, are you referring to the |
@davidklebanoff You're right :-), it's 10000. |
Thanks much @davidklebanoff and @siddharthlatest. What if we need to export upto 1M records? What are the risks if we modify the Elastic settings? One workaround I can think of is to save the query (not the query result) to run it later on the terminal where I have more flexibility, Would it work? |
@knguyen0105 That sounds like a question best suited for ElasticSearch. Have you tried looking at the ElasticSearch documentation, Google, or Elasticsearch forums? Remember, ReactiveSearch is just a React-based UI for Elasticsearch. Outside of the user interface and the query building logic, the core of the work is being done by Elasticsearch. |
@davidklebanoff : My apology if the question seems irrelevant. I just tried reactivesearch and elasticsearch a few days ago. Maybe I wasn't clear. My question is can I retrieve the query being sent to elasticsearch from ResultList component. My end-users (non-tech) will have a button 'Save Query' when there are more than 10k records. The user will "Save Query" and forward it to tech support later. |
Hi @knguyen0105 If you are dealing with large sets of data, you'll have to determine the active query on the results component via (I will attach a code snippet to achieve this sometime later today). |
Thank you @metagrover . A code sample defintely will help a lot. |
Snippet for exporting query hits data as csv can be found here. 🎉 @knguyen0105 Please try it out and let me know if that works for you! |
Is it possible to export a query result to a file?
I'm working on a search feature for our customer database. One requirement is that users can export a search result to a csv file so that it can be forwarded to another team (i.e marketing).
How do I implement this with reactivesearch? Thanks
The text was updated successfully, but these errors were encountered: