Method: Esearch::Presenter::Hit#source

Defined in:
lib/esearch/presenter/hit.rb

#sourceHash?

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

Return source field if present

Returns:

  • (Hash)

    if present

  • (nil)

    otherwise



17
18
19
# File 'lib/esearch/presenter/hit.rb', line 17

def source
  raw['_source']
end