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:
Erik Hatcher 2007-03-26 04:45:00 +00:00
parent f363315601
commit 1da74f6678
1 changed files with 1 additions and 1 deletions

View File

@ -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