Re: [basex-talk] How to escape/encode a search term using BaseX REST XQ

2020-01-24 Thread Ivan Kanakarakis
gt; pattern [1]: > > "search/{$query=.+}" > > In both cases, encodeURIComponent should be the appropriate function > to encode special characters. > > Hope this helps, > Christian > > [1] http://docs.basex.org/wiki/RESTXQ#Paths > > > > > > On M

[basex-talk] How to escape/encode a search term using BaseX REST XQ

2020-01-20 Thread Ivan Kanakarakis
Hello everyone, I am using BaseX 8.44 and the REST XQ interface (ie, http://docs.basex.org/wiki/RESTXQ). I have an endpoint that, when invoked with GET, it does a full text search (using "$db-nodes[text() contains text { $term } all]"), gets the results, constructs a JSON response and sends it bac