Query Search Not Working

strapi.query({collectionName}).searc({}) is not working. Returning 500 error response.

Are you actually using a method called “searc”?

Method “search” requires a object with
strapi.query('collectionName').search({_q: "something"})

Hi OmarMtya,

I am using method “search” with a object. But is still returning 500 error response.

Hey @Sumit_Choubey,

Can you give a bit more context / code snippets?
Where do you use:
strapi.query('collection'}).search({});

And also 500 means Internal Server Error, so there are probably some server logs worth sharing :wink:.