【发布时间】:2018-05-03 07:23:27
【问题描述】:
我正在阅读我的项目的 React InstantSearch 的文档,我找不到的一件事是添加日期范围以对我的命中列表进行排序的方法。有没有人有运气这样做?假设我有一个字段createdAt,其值为2017-11-08T09:19:46.310Z,另一个字段createdAt,其值为2017-11-10T09:19:46.310Z。有没有办法在这两个日期之间获得结果?
提前致谢!
更新:我尝试添加<Configure /> 代码,如下所示:
<InstantSearch
appId={'appId'}
apiKey={'my-api-key'}
indexName={'storeName'}
>
<Configure filters="createdAt: 1503406467899 TO 1509950548555" />
<SearchHit user={this.props.user} />
</InstantSearch>
现在我收到此错误,我的列表不再加载:
warning.js:36 Warning: Failed prop type: Required prop `searchForItems` was not specified in RefinementList. in RefinementList (at translatable.js:22)
这可能与过时的 React Instant Search 有关吗?
【问题讨论】:
标签: reactjs algolia react-instantsearch