-
Notifications
You must be signed in to change notification settings - Fork 529
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Allow Highlight to show when there is no highlighted value [react-instanctsearch] #1790
Labels
Comments
If the attribute exists in some records and not in others, then imho it's a bug. We should be able to declare different attributes and not fear the attributes to be unavailable. |
bobylito
pushed a commit
that referenced
this issue
Jan 2, 2017
Since algolia does not enforce a schema on the records, it is possible that an highlighted value is only available on some of them. This means that react-instantsearch should not throw when highlighting an attribute that is missing from the hit. fix #1790
bobylito
pushed a commit
that referenced
this issue
Jan 2, 2017
Since algolia does not enforce a schema on the records, it is possible that an highlighted value is only available on some of them. This means that react-instantsearch should not throw when highlighting an attribute that is missing from the hit. fix #1790
vvo
pushed a commit
that referenced
this issue
Jan 4, 2017
<a name="2.1.0"></a> # [2.1.0](v2.0.1...v2.1.0) (2017-01-04) ### Bug Fixes * **createInstantSearchManager:** drop outdated response (#1765) ([76c5312](76c5312)) * **highlight:** highlight should work even if the attribute is missing (#1791) ([5b79b15](5b79b15)), closes [#1790](#1790) * **InfiniteHits:** better classname to loadmore btn (#1789) ([ad2ded3](ad2ded3)) * **starRatings:** click on selected range doesn't unselect it (#1766) ([beacc72](beacc72)) * **website:** broken demo links (#1802) ([0abe2f5](0abe2f5)) * **widgets:** add 300px width for the default SearchBox (#1803) ([bf5d791](bf5d791)) ### Features * **InfiniteHits:** Add class to load more button (#1787) ([416febd](416febd)) * **RefinementList, connectRefinementList:** allow to search for facet values ([e086a81](e086a81))
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Can we add an option that allows no highlighted attribute?
https://github.com/algolia/instantsearch.js/blob/e561c7b1865e8fa921b2e1e725c983aae7366861/packages/react-instantsearch/src/core/highlight.js#L27
The text was updated successfully, but these errors were encountered: