[Groonga-commit] groonga/gcs [master] See searchEnabled option to extract matchIndexFields from all fields

Back to archive index

SHIMODA Hiroshi null+****@clear*****
Mon Aug 13 19:08:15 JST 2012


SHIMODA Hiroshi	2012-08-13 19:08:15 +0900 (Mon, 13 Aug 2012)

  New Revision: 643854d01adf1b0b4e972f3b5add646604ca16ff
  https://github.com/groonga/gcs/commit/643854d01adf1b0b4e972f3b5add646604ca16ff

  Log:
    See searchEnabled option to extract matchIndexFields from all fields

  Modified files:
    lib/api/2011-02-01/search.js

  Modified: lib/api/2011-02-01/search.js (+1 -1)
===================================================================
--- lib/api/2011-02-01/search.js    2012-08-13 18:58:12 +0900 (7261f0d)
+++ lib/api/2011-02-01/search.js    2012-08-13 19:08:15 +0900 (8255eed)
@@ -105,7 +105,7 @@ exports.createHandler = function(context) {
       try {
         queryAsBooleanQuery = translateQueryToBooleanQuery(query);
         matchIndexFields = domain.indexFields.filter(function(field) {
-          return field.type == 'text';
+          return field.type == 'text' && field.searchEnabled;
         });
         queryFilters = matchIndexFields.map(function(field) {
           var translator = new BooleanQueryTranslator(queryAsBooleanQuery);
-------------- next part --------------
HTML����������������������������...
Download 



More information about the Groonga-commit mailing list
Back to archive index