Re: [basex-talk] Autocomplete with RESTXQ

2020-08-31 Thread Imsieke, Gerrit, le-tex
Hi Michael, Just to let you know that I finally and successfully used the full text index for autocompletion, based on your prototype code. My endpoint for the lookup is like this: declare %rest:path("/chpd/{$work}/complete/{$what}") %rest:single (: only run 1 query per client :)

Re: [basex-talk] Autocomplete with RESTXQ

2020-06-28 Thread Michael Seiferle
You’re welcome. Glad I could help save some time, I agree it looks simple, yet wrapping ones head around those small details can be a real showstopper sometimes :-) Feel free to ask for more details anytime. Looking forward to seeing said search portal! Best from Konstanz Michael Von meinem

Re: [basex-talk] Autocomplete with RESTXQ

2020-06-27 Thread Imsieke, Gerrit, le-tex
Thanks Michael! This looks quite simple but you probably saved me two to four hours of figuring out which lib to use, how to invoke the completion and how to shape the server response. Will try to use it in my app tomorrow. And since there has been a question on this list recently which

Re: [basex-talk] Autocomplete with RESTXQ

2020-06-26 Thread Michael Seiferle
Hi Gerrit, I came up with the following example — https://git.basex.io/basex-public/mailinglist-autocomplete Hope this helps — feel free to ask for more. I simply chose the first autocomplete library that showed up when asking google for "autocomplete lightweight“ ;-) Probably the most

Re: [basex-talk] Autocomplete with RESTXQ

2020-06-25 Thread Liam R. E. Quin
On Thu, 2020-06-25 at 18:31 +0200, Imsieke, Gerrit, le-tex wrote: > Hi List, > > Can anyone recommend a lightweight vanilla Javascript autocomplete > library that can easily be used together with BaseX RESTXQ? Maybe > even a > readily cloneable/modifiable example? Awesomeplete works for me, by

[basex-talk] Autocomplete with RESTXQ

2020-06-25 Thread Imsieke, Gerrit, le-tex
Hi List, Can anyone recommend a lightweight vanilla Javascript autocomplete library that can easily be used together with BaseX RESTXQ? Maybe even a readily cloneable/modifiable example? I don’t have a preference for a server response format. The RESTXQ service may be configured to return