Merge branch 'master' into 12107-faster-git
[arvados.git] / apps / workbench / app / assets / javascripts / components / collections.js
index 60228893d8c016dff6718905f604d1ae4f8528b5..33fca6c7b770bf35354244e1d783de77c571cb80 100644 (file)
@@ -101,8 +101,11 @@ window.CollectionsSearch = {
                     return new MultipageLoader({
                         sessionKey: key,
                         loadFunc: function(filters) {
-                            if (q)
-                                filters.push(['any', '@@', q+':*'])
+                            var tsquery = to_tsquery(q)
+                            if (tsquery) {
+                                filters = filters.slice(0)
+                                filters.push(['any', '@@', tsquery])
+                            }
                             return vnode.state.sessionDB.request(session, 'arvados/v1/collections', {
                                 data: {
                                     filters: JSON.stringify(filters),