Permalink
Browse files

Incorporated Joe Hillenbrand's patch to allowing customization of def…

…ault result set size limit.
  • Loading branch information...
Robert Newson
Robert Newson committed Dec 23, 2010
1 parent 6e6c4b5 commit 5cb81db4444e3df2236a4d74a3095849dfb97ba9
@@ -1,4 +1,4 @@
* Thanks to Paul Davis for contributing the enhanced Javascript indexing API.
* Thanks to Adam Lofts for the performance boosting JSONDocumentAdapter et al.
* Thanks to Santiago M. Mola for the termvector option.
* Thanks to Joe Hillenbrand for adding default result limit to config.
@@ -11,6 +11,9 @@ port=5985
# Timeout for requests in milliseconds.
timeout=10000
# Default limit for search results
limit=25
# couchdb server mappings
[local]
@@ -508,7 +508,8 @@ public void search(final HttpServletRequest req,
final boolean include_docs = getBooleanParameter(req,
"include_docs");
final int limit = getIntParameter(req, "limit", 25);
final int limit = getIntParameter(req, "limit",
ini.getInt("lucene.limit", 25));
final Sort sort = CustomQueryParser.toSort(req
.getParameter("sort"));
final int skip = getIntParameter(req, "skip", 0);

0 comments on commit 5cb81db

Please sign in to comment.