We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 836f03b commit 5f18963Copy full SHA for 5f18963
lib/meilisearch/index.rb
@@ -221,8 +221,11 @@ def delete_all_documents!
221
### SEARCH
222
223
def search(query, options = {})
224
- parsed_options = Utils.transform_attributes({ q: query.to_s }.merge(options.compact))
+ attributes = { q: query.to_s }.merge(options.compact)
225
226
+ Utils.warn_on_non_conforming_attribute_names(attributes)
227
+
228
+ parsed_options = Utils.transform_attributes(attributes)
229
response = http_post "/indexes/#{@uid}/search", parsed_options
230
231
response['nbHits'] ||= response['estimatedTotalHits'] unless response.key?('totalPages')
0 commit comments