diff --git a/server/camlistored/ui/blob_item_container.js b/server/camlistored/ui/blob_item_container.js index 8798245ae..7193621a7 100644 --- a/server/camlistored/ui/blob_item_container.js +++ b/server/camlistored/ui/blob_item_container.js @@ -307,7 +307,7 @@ camlistore.BlobItemContainer.prototype.search = function(callerConstraint, thumbnailSize: this.thumbnailSize_ }, sort: 1, // LastModifiedDesc - limit: 30, + limit: 50, constraint : { logical: { op: 'and', @@ -323,28 +323,9 @@ camlistore.BlobItemContainer.prototype.search = function(callerConstraint, } }; - var callback = goog.bind(this.searchDone_, this, callerConstraint, - !isContinuation); - if (window.WebSocket) { - var uri = new goog.Uri(goog.uri.utils.appendPath( - this.connection_.config_.searchRoot, 'camli/search/ws')); - uri.setDomain(location.hostname); - uri.setPort(location.port); - uri.setScheme("ws"); - var ws = new WebSocket(uri.toString()); - ws.onopen = function() { - var message = { - tag: 'q1', - query: query - }; - ws.send(JSON.stringify(message)); - }; - ws.onmessage = function(e) { - callback(JSON.parse(e.data).result); - }.bind(this); - } else { - this.connection_.search(JSON.stringify(query), callback); - } + this.connection_.search(JSON.stringify(query), + goog.bind(this.searchDone_, this, callerConstraint, + !isContinuation)); }; camlistore.BlobItemContainer.prototype.searchDone_ = function(constraint,