appbaseio / appbaseio/reactivesearch

Feature: Add beforeQueryChange prop to each component

Aperta
#312 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub
enhancement maps :world_map: native :iphone: web :spider_web:
Lingua principale
JavaScript
Stelle
4.9k
Fork
478
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Descrizione

**Issue Type:**

Enhancement

**Platform:**

Web

**Description:**

Allow the user to have full control of the query to be sent with `beforeQueryChange` prop which takes in a `query` param that is the final ReactiveSearch generated query, as well as the `react` prop param and `defaultQuery` (if applicable) and expects a user defined query that will be executed in place.

Other possible parameters can be `selectedData`: an Array of [`dataField`, `value`, `mappingType`].

This relates to #311 and was also one of the points on the roadmap to v2 #114.

This can also (eventually) act as a building block to implement a different query DSL, for instance - one can write a SQL query by parsing the `react` prop value. Also related to #283.

Knowing these things would also allow passing a search template to the Elasticsearch backend as described in #314.

**Reactivesearch version:** x.y.z

2.3.2

Guida per i contributori

Apri la guida per i contributori

Valutazione

Questa issue non è ancora stata valutata.

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.