json-server
json-server copied to clipboard
Added the ability to full-text search for selected fields
Hello, I added the ability to full-text search for selected fields.
GET /posts?q=search-text&attr=fieldName1,fieldName2,fieldName3,etc
When no field is specified, the search works as before.
I'm very interested in this feature. Please, resolve this conflicts to add a reviewer
@ronerjr I resolved the conflicts.
@typicode let's ship it \o
@typicode @ronerjr Will you accept my PR?
@typicode @ronerjr Will you accept my PR?
why was this never merged?
i think it will be really useful feature
bump
it would be awesome to have this feature!
To utilize full-text search in the latest version of v1, you cannot use the syntax GET /posts?q=search-text. Please provide information on how to utilize full text search in the latest version.
q query parameter is not working. http://localhost:3000/products?q=silver
@PavanBashetty it doesn't work for me too if you take a look at the v1 documentation you will see that _like,_q, and pagination with limit have been deprecated
If anyone wants to use the latest v0 with this feature, I implemented this pr on my fork https://github.com/notPlancha/json-server
If you want to use the q query parameter which isn't working with latest version ([1.0.0-beta.0] Changing the version to "^0.17.4" and it worked.