You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Thanks for the wonderful package.
I am exploring if this package can be extended to support typeahead where the phrases can have variables in them. Enumeration all possible values for those variables may be ruled out. For example consider below phrases:
host {host_name} is from {location_name}
hello {host_name}
etc.
wherein the values for {host_name} and {location_name} would come from an external lookup database.
Is it possible to achieve this with the data structure used in the package?
Thanks much for any help.
The text was updated successfully, but these errors were encountered:
Hi @ksmithra
There are some pieces of the original package that I never open sourced and would make it easier to achieve what you are describing. If you checkout https://fair.com where this package is used for the autocomplete you can see some example. For example type bmw in santa or bmw in santa monica and see the autocomplete results. The homepage doesn't show all the results from autocomplete but if you click search and go to a page like https://www.fair.com/cars/used/bmw-in-santa-monica you can see up to 5 results from autocomplete when typing.
Now getting back to how you can use this package to do what you want, you can add words like this:
host foo
host bar
is from los angeles
is from paris
Then when typing host you should get host foo and host bar in the results.
once you type host foo is from it should five you both host foo is from los angeles and host foo is from paris
Thanks for the wonderful package.
I am exploring if this package can be extended to support typeahead where the phrases can have variables in them. Enumeration all possible values for those variables may be ruled out. For example consider below phrases:
host {host_name} is from {location_name}
hello {host_name}
etc.
wherein the values for {host_name} and {location_name} would come from an external lookup database.
Is it possible to achieve this with the data structure used in the package?
Thanks much for any help.
The text was updated successfully, but these errors were encountered: