[Groonga-commit] nroonga/norema [master] Request 100 entries to the search backend

Back to archive index

null+****@clear***** null+****@clear*****
2012年 8月 9日 (木) 15:58:26 JST


Yoji SHIDARA	2012-08-09 15:58:26 +0900 (Thu, 09 Aug 2012)

  New Revision: 3d6878a9ee52270ced9f8e6d52ffcf88407ecbea
  https://github.com/nroonga/norema/commit/3d6878a9ee52270ced9f8e6d52ffcf88407ecbea

  Log:
    Request 100 entries to the search backend

  Modified files:
    lib/server.js

  Modified: lib/server.js (+1 -1)
===================================================================
--- lib/server.js    2012-08-09 15:50:28 +0900 (00d815d)
+++ lib/server.js    2012-08-09 15:58:26 +0900 (4f8e168)
@@ -29,7 +29,7 @@ app.use(function(error, request, response, next){
 
 // helpers
 function search(query, callback) {
-  var url = 'http://' + searchNode + '/2011-02-01/search?q=' + encodeURIComponent(query);
+  var url = 'http://' + searchNode + '/2011-02-01/search?size=100&q=' + encodeURIComponent(query);
   var buffer = '';
   var request = http.get(url, function(response) {
     if (response.statusCode !== 200) {
-------------- next part --------------
HTML$B$NE:IU%U%!%$%k$rJ]4I$7$^$7$?(B...
Download 



Groonga-commit メーリングリストの案内
Back to archive index