Skip to content

Commit 1c70024

Browse files
feat (search): adds support for vectorDataField, and candidates props
- updates release version to 4.3.0
1 parent 575d860 commit 1c70024

File tree

3 files changed

+9
-3
lines changed

3 files changed

+9
-3
lines changed

packages/web/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@appbaseio/reactivesearch",
3-
"version": "4.2.2",
3+
"version": "4.3.0",
44
"description": "A React UI components library for building search experirnences",
55
"main": "lib/index.js",
66
"types": "lib/index.d.ts",
@@ -38,7 +38,7 @@
3838
"license": "Apache-2.0",
3939
"dependencies": {
4040
"@appbaseio/analytics": "^1.2.0-alpha.1",
41-
"@appbaseio/reactivecore": "10.2.1",
41+
"@appbaseio/reactivecore": "10.4.0",
4242
"@appbaseio/rheostat": "^1.0.0-alpha.15",
4343
"@emotion/core": "^10.0.28",
4444
"@emotion/styled": "^10.0.27",

packages/web/src/components/result/ReactiveList.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -921,7 +921,9 @@ ReactiveList.propTypes = {
921921
componentId: types.stringRequired,
922922
compoundClause: types.compoundClause,
923923
children: types.func,
924-
dataField: types.stringRequired,
924+
dataField: types.string,
925+
vectorDataField: types.string,
926+
candidates: types.number,
925927
aggregationField: types.string,
926928
aggregationSize: types.number,
927929
aggregationData: types.aggregationData,
@@ -986,6 +988,7 @@ ReactiveList.defaultProps = {
986988
excludeFields: [],
987989
showResultStats: true,
988990
size: 10,
991+
candidates: 10,
989992
style: {},
990993
URLParams: false,
991994
showLoader: true,

packages/web/src/components/search/SearchBox.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2449,6 +2449,8 @@ SearchBox.propTypes = {
24492449
customQuery: types.func,
24502450
defaultQuery: types.func,
24512451
dataField: types.dataFieldValidator,
2452+
vectorDataField: types.string,
2453+
candidates: types.number,
24522454
aggregationField: types.string,
24532455
aggregationSize: types.number,
24542456
size: types.number,
@@ -2581,6 +2583,7 @@ SearchBox.defaultProps = {
25812583
strictSelection: false,
25822584
searchOperators: false,
25832585
size: 10,
2586+
candidates: 10,
25842587
time: 0,
25852588
focusShortcuts: ['/'],
25862589
addonBefore: undefined,

0 commit comments

Comments
 (0)