15429: Changes full text searching on wb1 utilizing new trigram indexes.
[arvados.git] / apps / workbench / app / assets / javascripts / components / search.js
index 04572ec3cc9ebd82e5ef896d086339337771a431..6af2dcaccbbba7f8f8e25eed03f86c95a320e147 100644 (file)
@@ -143,10 +143,9 @@ window.Search = {
                                 loadFunc: function(filters) {
                                     // Apply additional type dependant filters
                                     filters = filters.concat(obj_type.filters)
-                                    var tsquery = to_tsquery(q)
-                                    if (tsquery) {
-                                        filters.push(['any', '@@', tsquery])
-                                    }
+                                    to_tsquery_filters(q).forEach(function(f) {
+                                        filters.push(f)
+                                    })
                                     return vnode.state.sessionDB.request(session, obj_type.api_path, {
                                         data: {
                                             filters: JSON.stringify(filters),