appbaseio/reactivesearch

Feature: Add support for `nested` object mapping

Open

#595 aperta il 31 ott 2018

Vedi su GitHub
 (13 commenti) (1 reazione) (0 assegnatari)JavaScript (487 fork)batch import
Vue.JSenhancementgood first issue :wave:help wanted

Metriche repository

Star
 (4835 star)
Metriche merge PR
 (Merge medio 3g 7h) (1 PR mergiata in 30 g)

Descrizione

Issue Type:

Enhancement

Platform:

ReactiveSearch for Web

Description:

ReactiveSearch today doesn't support querying the fields of an object field with a nested mapping.

A nested object requires a different query (where a path for the nested field needs to be specified) along with the original query. The same applies to an aggregation.

This issue proposes to add a nestedField prop in all the data-driven components we have to support the use-case of a nested object.

Prop definition for the field looks like:

nestedField String [optional]
When your dataField is present inside an object of type nested, this can be used to set the path of the nested field. Setting this allows searching within documents belonging to the path.

Reactivesearch version: x.y.z

2.12.1

Components to support this in:

  • MultiDropdownList
  • SingleDropdownList
  • MultiList
  • SingleList
  • SingleRange
  • MultiRange
  • SingleDropdownRange
  • MultiDropdownRange
  • DataSearch
  • CategorySearch
  • TextField
  • ToggleButton
  • TagCloud
  • SingleDataList
  • MultiDataList
  • RangeSlider
  • DynamicRangeSlider
  • RangeInput
  • NumberBox
  • DatePicker
  • DateRange
  • RatingsFilter
  • GeoDistanceSlider
  • GeoDistanceDropdown

Guida contributor