Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

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

…ault result set size limit.
  • Loading branch information...
commit 5cb81db4444e3df2236a4d74a3095849dfb97ba9 1 parent 6e6c4b5
@rnewson authored
View
2  THANKS.md
@@ -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.
View
3  src/main/conf/couchdb-lucene.ini
@@ -11,6 +11,9 @@ port=5985
# Timeout for requests in milliseconds.
timeout=10000
+# Default limit for search results
+limit=25
+
# couchdb server mappings
[local]
View
3  src/main/java/com/github/rnewson/couchdb/lucene/DatabaseIndexer.java
@@ -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);
Please sign in to comment.
Something went wrong with that request. Please try again.