I'm trying to create a search bar that can search for multiple keys and values. An example of use will be "type: car, model: toyota". Available keys will be autocomplete. My initial idea was that once the user started typing to view the available keys, once he has selected one, add the selected key to the input with a & # 39;: & # 39; as:
everything you write after the & # 39;: & # 39; will be the value. Once you entered, I thought I would cheat a token with the key and value entries and repeat the process. You will have at the end of your key / value selection a list of bullets created based on your entries that will be used for the actual search.
My concerns are:
– Is it a clean way to do that?
– Do you know of sites that have a similar search behavior and on which I can inspire?
– How to handle a long list of parameters (note that the search bar has a limited width and height in the page)?
– Do you have any other suggestions on how to approach this?