From fd75e20e6342be17c9cfc785d282e275d10f8244 Mon Sep 17 00:00:00 2001 From: Jan Lehnardt Date: Thu, 5 Jun 2008 21:24:42 +0000 Subject: 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. git-svn-id: https://svn.apache.org/repos/asf/incubator/couchdb/trunk@663744 13f79535-47bb-0310-9956-ffa450edef68 --- src/couchdb/couch_httpd.erl | 12 ------------ 1 file changed, 12 deletions(-) (limited to 'src') diff --git a/src/couchdb/couch_httpd.erl b/src/couchdb/couch_httpd.erl index 81217a74..b9244b1b 100644 --- a/src/couchdb/couch_httpd.erl +++ b/src/couchdb/couch_httpd.erl @@ -251,18 +251,6 @@ handle_db_request(Req, 'POST', {_DbName, Db, ["_compact"]}) -> 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"]}) -> -- cgit v1.2.3