Method: ActiveDocument::Base.find_by_word
- Defined in:
- lib/ActiveDocument/active_document.rb
.find_by_word(word, root = @root, namespace = @my_default_namespace) ⇒ Object
Finds all documents of this type that contain the word anywhere in their structure
348 349 350 351 352 353 |
# File 'lib/ActiveDocument/active_document.rb', line 348 def find_by_word(word, root=@root, namespace=@my_default_namespace) response_array = ActiveDocument::CoronaInterface.find_by_word(word, root, namespace) uri_array = response_array[:uri] @@log.info("ActiveDocument.execute_find_by_word at line #{__LINE__}: #{response_array}") SearchResults.new(@@ml_http.send_corona_request(uri_array[0], uri_array[1], nil, response_array[:post_parameters])) end |