summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJan Lehnardt <jan@apache.org>2008-06-05 21:24:42 +0000
committerJan Lehnardt <jan@apache.org>2008-06-05 21:24:42 +0000
commitfd75e20e6342be17c9cfc785d282e275d10f8244 (patch)
tree545777b820467c74e8b933afa89d3705e07f2e20 /src
parentccf7d49067309e043185205047dbe7abd26535bf (diff)
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
Diffstat (limited to 'src')
-rw-r--r--src/couchdb/couch_httpd.erl12
1 files changed, 0 insertions, 12 deletions
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"]}) ->