lib/inquisitio.rb in inquisitio-1.5.0 vs lib/inquisitio.rb in inquisitio-2.0.0
- old
+ new
@@ -1,17 +1,16 @@
-require "inquisitio/version"
-require "inquisitio/inquisitio_error"
-require "inquisitio/logger"
-require "inquisitio/active_support"
+require 'inquisitio/version'
+require 'inquisitio/inquisitio_error'
+require 'inquisitio/logger'
+require 'inquisitio/active_support'
+require 'inquisitio/configuration'
+require 'inquisitio/document'
+require 'inquisitio/search_url_builder'
+require 'inquisitio/searcher'
+require 'inquisitio/results'
+require 'inquisitio/indexer'
-require "inquisitio/configuration"
-require "inquisitio/document"
-require "inquisitio/search_url_builder"
-require "inquisitio/searcher"
-require "inquisitio/results"
-require "inquisitio/indexer"
-
module Inquisitio
# Inquisitio configuration settings.
#
# Settings should be set in an initializer or using some
@@ -67,16 +66,9 @@
# Specify which fields you want returned.
#
# @param query A string or array specifying the fields
def self.returns(num)
Searcher.returns(num)
- end
-
- # Specify any other fields you want to send as part of the request.
- #
- # @param query An array of fields.
- def self.with(num)
- Searcher.with(num)
end
# Index a batch of documents.
#
# @param [Array] documents. A list of Documents to index.