[Photon] Question regarding search-as-you-type feature
Sarah Hoffmann
lonvia at denofr.de
Sun Mar 20 10:16:24 UTC 2022
Hi,
On Sat, Mar 19, 2022 at 05:20:45PM +0000, Leo Wetterek wrote:
> I have a question regarding the search-as-you-type feature. There is no documentation on how to use it. Should a fetch be made for each character in the search phrase changed like the following?
>
> http://localhost:2322/api?q=b<http://localhost:2322/api?q=berlin>
> http://localhost:2322/api?q=be<http://localhost:2322/api?q=berlin>
> http://localhost:2322/api?q=ber<http://localhost:2322/api?q=berlin>
> http://localhost:2322/api?q=ber<http://localhost:2322/api?q=berlin>l
> http://localhost:2322/api?q=berli<http://localhost:2322/api?q=berlin>
> http://localhost:2322/api?q=berlin
>
> ... Or is there a seperate url pattern for the search-as-you-type feature?
That's how you do it, yes. There is no separate endpoint for
suggestions.
Sarah
More information about the Photon
mailing list