Questions tagged [reactivesearch]

React and React Native UI components for Elasticsearch

ReactiveSearch is a , and components library for building search UIs using .

Features

  • Configurable styles
  • Works with any Elasticsearch cluster
  • Customizable queries
  • Connect any react component to Elasticsearch and other reactivesearch components

Resources

100 questions
32
votes
2 answers

Assign a const variable inside a map function

I'm using Reactivesearch, and I'm trying to assign a const variable inside a map function. Specifically in the .map Like such: onAllData(data, streamData) { return (
{ data.map((item) => …
Amir Asyraf
  • 613
  • 1
  • 7
  • 18
5
votes
0 answers

ReactiveSearch (ReactJS) w/ Elasticsearch CORS error

I am trying to connect my front-end React app with a local elasticsearch node. I am using ReactiveSearch to connect elasticsearch. My server is running on Digital Ocean and it's running Ubuntu 16.04. I followed their quickstart guide to get…
jrkt
  • 2,615
  • 5
  • 28
  • 48
4
votes
1 answer

ReactiveSearch running a saved query

I have saved a query in a DB and recalled it for running again. However, I do not know how re-run the query. I obtain the query in the onChange and saved the value to the DB as a string for recalling later so it can be worked on.
user1767752
  • 360
  • 5
  • 11
4
votes
0 answers

ReactiveSearch: How can I delay/suspend a reactive query until multiple filters have changed?

The normal behavior is for ReactiveBase to execute a new query with each change in a react component, such as a filter. But in my case, I would like to make multiple filter changes and suspend the reactive auto-query until all changes are made.…
4
votes
1 answer

ReactiveSearch, ES and CORS

I plan on using AWS ES service to host my Elasticsearch. I setup a proxy as described here like so in Express server. var proxy = require('express-http-proxy'); ... app.use('/', index); app.use('/users', users); app.use('/search',…
user3125823
  • 1,846
  • 2
  • 18
  • 46
3
votes
2 answers

Use reactivesearch to query multiple indices

I realize that one can use ReactiveBase to setup a connection to an index and then, use the components to query and return information from that index. Is there a way to bind to multiple indices and search on a field across them or return results…
kewlking
  • 412
  • 1
  • 4
  • 11
3
votes
1 answer

Using ReactiveSearch with plain elasticsearch

I'd like to use reactivesearch with my own plain vanilla elasticsearch cluster. While the example and documentation describe that this should be possible: ReactiveBase, see the url Param. I get connection errors and a Websocket call wss://.. which…
paweloque
  • 18,466
  • 26
  • 80
  • 136
2
votes
1 answer

Can't get reactive-search search results

i am new in react and have a problem. I wanted to create a simple search page for the beginning and I already have an elasticsearch cluster. I followed this tutorial:…
K-Town
  • 29
  • 2
2
votes
1 answer

Errors when using template literals in Vue

I have the following in my Vue project: :customHighlight = `(props) => ({ highlight: { pre_tags: [''], post_tags: [''], fields: { text: {}, title:…
user1525612
  • 1,864
  • 1
  • 21
  • 33
2
votes
2 answers

ComponentSearch with submit button

I need help in making the component search fire up only when a submit button is clicked or hit enter key. not as the user types. I have set up my state and used onValueChange method to get the value entered made the button state={ …
2
votes
2 answers

How can I conditionally render search results with ReactiveBase

I'm trying to conditionally render my Results component from within ReactiveBase, but every time I try to use a ternary operator it breaks the rendering. If I remove the ternary, results display. I'm using the component to display the…
2
votes
1 answer

URLParams of reactivesearch with next-routes

Does anyone have an idea on how to handle the url writing of URLParams of some reactivesearch component with next-routes? My pattern for, let's say some country filter, should look like this: pattern: '/country/:countryname/ instead of…
axel wolf
  • 1,446
  • 3
  • 18
  • 29
2
votes
1 answer

Suggestions are not showing for DataSearch when the search needs to happen on elastic field of array type

My elastic search provides the results as an elastic array. Here is how the mappings look. "positions": { "properties": { "en": { "type": "text", "fields": { "keyword": { …
Naibedya Kar
  • 305
  • 2
  • 9
2
votes
1 answer

React SSR and ReactiveSearch

If I have a movie search application and am using ReactiveSearch with Elasticsearch. I'd like to integrate Server Side Rendering (SSR) into the app but am trying to make sure I understand implementation first before I start. I want my Autocomplete…
user3125823
  • 1,846
  • 2
  • 18
  • 46
2
votes
1 answer

How to filter _source in reactivesearch?

I need to exclude certain fields from the _source field in the elastic response since those fields are huge and transferring them unnecessarily wastes lots of time. In general, in elastic this is done by providing _source parameter in the query,…
glexey
  • 811
  • 7
  • 25
1
2 3 4 5 6 7