parameter:results_per_page,'Number of results per page'
parameter:order,'How the results should be ordered. Default is by relevance, possible values are: author, publicationasc, publicationdesc, title, likes, downloads, review_average. User order by relevance and name.'
parameter:query,'The query string to be searched'
parameter:search_class,'What kind of object are going to be searched: LearningObject, Collection, User'
parameter:tags,'Filter the search by tags, separated by ’&’. Example: tags[]=Biologia&tags[]=Artes'
parameter:subjects,'Filter the search by subjects, array of ids. Example: subjects[]=1&subjects[]=2'
parameter:educational_stages,'Filter the search by educational_stages, array of ids. Example: educational_stages[]=1&educational_stages[]=2'
parameter:types,'Filter the search by Learning Object object types, array of ids. Example: object_types[]=1&object_types[]=2'
let(:page){1}
let(:results_per_page){12}
let(:order){"score"}
let(:query){"*"}
let(:search_class){"LearningObject"}
beforedo
LearningObject.reindex
end
example_request'Fetching objects'do
# active model serializer may render model associations in different order for collections (array of items), so we're verifing only returned ids