Permalink
Browse files

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

…ault result set size limit.
  • Loading branch information...
1 parent 95858f7 commit 68c3c78524c44df6197f982263a5a4ac429549e8 Robert Newson committed Dec 23, 2010
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);

0 comments on commit 68c3c78

Please sign in to comment.