[Groonga-commit] groonga/gcs [master] Detect unknown mismatched type index field options

Back to archive index

YUKI Hiroshi null+****@clear*****
Wed Nov 21 19:14:59 JST 2012


YUKI Hiroshi	2012-11-21 19:14:59 +0900 (Wed, 21 Nov 2012)

  New Revision: 00afd393a6bcc3aed199a0564e15cbed4d7586b4
  https://github.com/groonga/gcs/commit/00afd393a6bcc3aed199a0564e15cbed4d7586b4

  Log:
    Detect unknown mismatched type index field options

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

  Modified: lib/api/2011-02-01/configuration.js (+3 -3)
===================================================================
--- lib/api/2011-02-01/configuration.js    2012-11-21 19:12:31 +0900 (4f1ebdc)
+++ lib/api/2011-02-01/configuration.js    2012-11-21 19:14:59 +0900 (0a650d4)
@@ -324,13 +324,13 @@ function getFieldOption(option, request, type) {
 
 function assertHaveNoMismatchedTypeOption(request, type) {
   var textOptions = Object.keys(request.query).filter(function(name) {
-        return TEXT_FIELD_OPTIONS.indexOf(name) > -1;
+        return name.indexOf('IndexField.TextOptions.') == 0;
       });
   var literalOptions = Object.keys(request.query).filter(function(name) {
-        return LITERAL_FIELD_OPTIONS.indexOf(name) > -1;
+        return name.indexOf('IndexField.LiteralOptions.') == 0;
       });
   var uintOptions = Object.keys(request.query).filter(function(name) {
-        return UINT_FIELD_OPTIONS.indexOf(name) > -1;
+        return name.indexOf('IndexField.UIntOptions.') == 0;
       });
 
   if (type == 'text' && (literalOptions.length || uintOptions.length))
-------------- next part --------------
HTML����������������������������...
Download 



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