- SortingSelector handles for app reload.
- PageSizeSelector synchronises state correctly with url
- support Classic components using react.createClass properly in our prop overrides such as listComponent, itemComponent etc.
- Classname changes,in
RefinementListFilter
,MenuFilter
,NumericRefinementListFilter
,Pagination
,ViewSwitcherToggle
,SortingSelector
. We have updated the theme to be backwards compatible, but if you have custom css for those components, you may need to update them.
-
New UI Components
-
List components (
Toggle
,Select
,ItemList
,CheckboxItemList
,ItemHistogramList
,Tabs
,TagCloud
)- supported by
RefinementListFilter
,MenuFilter
,Pagination
,ViewSwitcherToggle
,SortingSelector
,NumericRefinementListFilter
- supported by
-
Panel, all left hand filter components use Panel which can be collapsable now.
-
RefinementListFilter, MenuFilter itemComponent changes
- If you have implemented a custom itemComponent, the toggleFilter action function has been renamed to onClick, be sure to rename so that clicking facets works as expected.
-
Added range input capability to
RangeFilter
-
Added
PageSizeSelector
for selecting how many results per page -
Hits
+ViewSwitcherHits
now supports listComponent to fully handled the list container. -
Pagination
now supports showText property,PaginationSelect
is a select based implementation of Pagination -
SearchkitManager
now supportssearchOnLoad
property which controls whether the initial search runs. -
SearchkitManager
has asearchUrlPath
property which controls the endpoint name (defaults to _search) -
exclude/include properties added to
RefinementListFilter
,MenuFilter
. These are just a pass through property to ElasticSearch's Terms Aggregation
Theming
, 0.7 has major changes to component classnames and overall theming approach. Searchkit classes are now prefixed withsk-
in order to avoid collisions, we also provide a set of variables which control various aspects of the theme. See theming section in docs.Hits
component requiresmod="sk-hits-grid"
to retain grid styling- If you are using the cdn, we only ship
themes.css
and no longerstyles.css
<link href="//cdn.jsdelivr.net/searchkit/0.7.0/theme.css" rel="stylesheet"/>
setQueryProcessor
added toSearchkitManager
which allows post processing of query before it is sent to elasticsearch. #131SortingSelector
now allows empty field, sort properties, useful if you need to add a None option or you want to rely on elasticsearch defaults for sort direction. #116ViewSwitcherHits
andViewSwitcherToggle
toggle components which allows view switch functionality, e.g. grid or list view. Our theming updates also provide good defaults for grid + list views. #30ResetFilter
now accepts reset options. This allows the which features(filter, query, pagination) influence the resetting disabled state, and what gets reset once the component has been clicked. #107
- Fix regression in RefinementListFilter not showing view more options
- Fix pagination bug where last page was not clickable.
- Fix documentation references for sourceFilter which lead to incomplete demo
Hits
now supports thesourceFilter
prop, we strongly advise you to use this as it will speed up your search and reduce a lot of wasted bandwidth #20
<Hits hitsPerPage={50} sourceFilter={["title", "poster", "imdbId"]} itemComponent={HitItem}/>
SortingSelector
Component now supportsdefaultOption
prop, and we have fixed issues in selection. #89RefinementListFilter
,MenuFilter
,HierarchicalMenuFilter
all support sorting on intrinsic order fields via the theorderKey
andorderDirection
props. #46NoHits
,ResetFilters
now support customization via high order react componentsHitStats
now supports customization via higher order react component, note if you previously extended HitStats, you will need to change your code to use thecomponent
prop- ScrollToTop improvements, now configurable on
Hits
component and will scroll to top on any result changes, this is via thescrollTo
prop. #48 - ErrorHandling, we now display a more meaningful message when an error in elastic or the http call occurs. The
NoHits
component displays this, and is also configurable via theerrorComponent
higher order component prop.#18 ResetFilters
now ignores defaultQueries.#44
- missing theme css
- remove lib from git. If you install package not via npm, you need to
npm run-script build
in root of project. #37
- InitialView component #34
-
Avoid duplicate redundant searches #71
-
Discourage extending searchkit components, use
itemComponent
andcomponent
to override display with your own React components. The following components support this feature. See component docs for more information. #17- Hits
- InitialLoader
- Menu
- Refinement List
- Reset
- Selected Filters
-
Pagination supports showing links #40
-
Range Filter no filter applied if range min max equals component min and max #16
-
Configurable search throttle time via prop on searchbox component #55
- No throttling of search query #35
- componentWillUnmount not removing accessor #25
- NumericRefinementListFilter does not add
.is-disabled
class when has no options #50
- update to lodash 4.0 with individual function imports (smaller footprint)
- Breaking api change to internal query builder RangeQuery
- Increased unit test coverage to 99%
- Increase e2e test coverage
- New RangeFilter slider component
- More QueryDSL builds
- Improved tsting
- Correct Searchkit.version
- Better Documentation
- Complete rewrite of query builder
- More test coverage ( 92% coverage )
- More comprehensive support for translations
- Better Documentation
- New
NoHits
Component
- No results blank state now handled by
NoHits
component, removed responsibility fromHits
component. Please useNoHits
component instead for this state.
Searchbox
:prefixQueryFields
usesqueryFields
if not specified andsearchOnChange
prop is enabled
- Changed licence to Apache 2.0
- Better Documentation
- Searchbox uses replacestate as you type, pushstate on no change after 400ms
- Better Documentation
- Searchbox uses replacestate as you type, pushstate on no change after 400ms
- Initial public release