Skip to content
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

fix in highlights when it's not exists #556

Closed
wants to merge 10 commits into from
Closed

fix in highlights when it's not exists #556

wants to merge 10 commits into from

Conversation

alonyado
Copy link

@alonyado alonyado commented May 1, 2013

fixes a nil reference exception when using highlights that doesn't exists.
Can occur if you are search for nothing (just hitting enter) or using only facets so there are no highlight and the object is nil

fixes a nil reference exception when using highlights that doesn't exists. 
Can occur if you are search for nothing (just hitting enter) or using only facets so there are no highlight and the object is nil
@jcoyne
Copy link
Member

jcoyne commented May 1, 2013

The code looks good, can you add a test to your pull request too?

useful if you would like to add additional logs in your application like from which search_id the document was opened, writing searches log with after_filter and more
needed to add configuration
increase acet.limit to 1000 in each request
and requesting solr
@cbeer cbeer closed this in 4442232 Jul 18, 2013
@cbeer
Copy link
Member

cbeer commented Jul 18, 2013

I didn't think it was appropriate to fallback to the non-highlighted field if highlighting was requested. Implementors should have to explicitly request that.

@coveralls
Copy link

Coverage Status

Changes Unknown when pulling f68c9de on alonyado:master into * on projectblacklight:master*.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants