Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added the ability to full-text search for selected fields #558

Open
wants to merge 6 commits into
base: main
Choose a base branch
from

Conversation

RinatMullayanov
Copy link

@RinatMullayanov RinatMullayanov commented Jun 17, 2017

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.

@RinatMullayanov RinatMullayanov changed the title patch - ignore id with full-text search Added the ability to full-text search for selected fields Jun 18, 2017
@ronerjr
Copy link

ronerjr commented Jul 7, 2017

I'm very interested in this feature.
Please, resolve this conflicts to add a reviewer

@RinatMullayanov
Copy link
Author

@ronerjr I resolved the conflicts.

@ronerjr
Copy link

ronerjr commented Jul 7, 2017

@typicode let's ship it \o

@RinatMullayanov
Copy link
Author

@typicode @ronerjr Will you accept my PR?

@RinatMullayanov
Copy link
Author

@typicode @ronerjr Will you accept my PR?

@childonline
Copy link

why was this never merged?

@TerryJung
Copy link

TerryJung commented Sep 12, 2018

i think it will be really useful feature

@Earthii
Copy link

Earthii commented Jan 9, 2019

bump

@r03ert0
Copy link

r03ert0 commented May 8, 2019

it would be awesome to have this feature!

@GilSeonJu
Copy link

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.

@PavanBashetty
Copy link

q query parameter is not working.
http://localhost:3000/products?q=silver

@ubeysaab
Copy link

ubeysaab commented Apr 12, 2024

@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

@notPlancha
Copy link

If anyone wants to use the latest v0 with this feature, I implemented this pr on my fork https://github.com/notPlancha/json-server

@varun-mfs
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.