sickdyd / react-search-autocomplete

A search box that filters the provided array of objects
https://sickdyd.github.io/react-search-autocomplete
MIT License
222 stars 85 forks source link

[feature request] Search by question id #111

Open TX1999-pro opened 1 year ago

TX1999-pro commented 1 year ago

Dear Developer,

I am using react-search-autocomplete for my project, which I have a database of curated question on Fermi Estimation. The autocomplete is an interesting user-interaction because it hints people what types of questions can be asked.

However, I couldn't figure out how the component perform the ambiguious search to determine relevance. Some user may just want to pull out questions based on the id. Is it possible to achieve that?

Thank you! Ti (🍵)

Screenshot: image

Feature Description search based on the id of the question in the database.

sarahbwalsh commented 1 week ago

use the keys prop to add your question id to the parameters that will be searched.