couchdb-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From j..@apache.org
Subject svn commit: r663744 - /incubator/couchdb/trunk/src/couchdb/couch_httpd.erl
Date Thu, 05 Jun 2008 21:24:42 GMT
Author: jan
Date: Thu Jun  5 14:24:42 2008
New Revision: 663744

URL: http://svn.apache.org/viewvc?rev=663744&view=rev
Log:
Remove /db/_search API call. This will be maintained in the lucene-search branch and merged
back after a 0.8 release when things got more stable.

Modified:
    incubator/couchdb/trunk/src/couchdb/couch_httpd.erl

Modified: incubator/couchdb/trunk/src/couchdb/couch_httpd.erl
URL: http://svn.apache.org/viewvc/incubator/couchdb/trunk/src/couchdb/couch_httpd.erl?rev=663744&r1=663743&r2=663744&view=diff
==============================================================================
--- incubator/couchdb/trunk/src/couchdb/couch_httpd.erl (original)
+++ incubator/couchdb/trunk/src/couchdb/couch_httpd.erl Thu Jun  5 14:24:42 2008
@@ -251,18 +251,6 @@
 handle_db_request(_Req, _Method, {_DbName, _Db, ["_compact"]}) ->
     throw({method_not_allowed, "POST"});
 
-handle_db_request(Req, 'GET', {DbName, _Db, ["_search"]}) ->
-    case Req:parse_qs() of
-        [{"q", Query}] when (length(Query) > 0) ->
-            {ok, Response} = couch_ft_query:execute(DbName, Query),
-            send_json(Req, {obj, [{ok, true} | Response]});
-        _Error ->
-            throw({no_fulltext_query, "Empty Query String"})
-    end;
-
-handle_db_request(_Req, _Method, {_DbName, _Db, ["_search"]}) ->
-    throw({method_not_allowed, "GET,HEAD"});
-
 % View request handlers
 
 handle_db_request(Req, 'GET', {_DbName, Db, ["_all_docs"]}) ->



Mime
View raw message