mirror of https://github.com/apache/lucene.git
dismax apparently does not even output a _highlighting_ section in the output unless there is a full-text query to highlight
git-svn-id: https://svn.apache.org/repos/asf/lucene/solr/trunk@522415 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
f363315601
commit
1da74f6678
|
@ -47,7 +47,7 @@ class Solr::Response::Standard < Solr::Response::Ruby
|
|||
end
|
||||
|
||||
def highlighted(id, field)
|
||||
@data['highlighting'][id.to_s][field.to_s]
|
||||
@data['highlighting'][id.to_s][field.to_s] rescue nil
|
||||
end
|
||||
|
||||
# supports enumeration of hits
|
||||
|
|
Loading…
Reference in New Issue