[Groonga-commit] groonga/gcs [master] Raise error for not-configurable options

Back to archive index

YUKI Hiroshi null+****@clear*****
Fri Nov 16 17:35:33 JST 2012


YUKI Hiroshi	2012-11-16 17:35:33 +0900 (Fri, 16 Nov 2012)

  New Revision: 997712bf8fab3e70e0f1feb28f9a3dbc3591abbc
  https://github.com/groonga/gcs/commit/997712bf8fab3e70e0f1feb28f9a3dbc3591abbc

  Log:
    Raise error for not-configurable options

  Modified files:
    bin/gcs-configure-fields

  Modified: bin/gcs-configure-fields (+4 -4)
===================================================================
--- bin/gcs-configure-fields    2012-11-16 17:29:31 +0900 (07a77ca)
+++ bin/gcs-configure-fields    2012-11-16 17:35:33 +0900 (ca5a19f)
@@ -121,17 +121,17 @@ client.getIndexFieldStatus(fieldName, function(error, field) {
 
     switch (type) {
       case 'text':
-        if (option == 'nosearch')
+        if (option == 'search' || option == 'nosearch')
           client.raiseFatalError('searchable option cannot be configured for the type text.');
         params.IndexField.TextOptions = options;
         break;
 
       case 'uint':
-        if (option == 'facet')
+        if (option == 'facet' || option == 'nofacet')
           client.raiseFatalError('facet option cannot be configured for the type uint.');
-        if (option == 'noresult')
+        if (option == 'result' || option == 'noresult')
           client.raiseFatalError('returnable option cannot be configured for the type uint.');
-        if (option == 'nosearch')
+        if (option == 'search' || option == 'nosearch')
           client.raiseFatalError('searchable option cannot be configured for the type uint.');
         params.IndexField.UIntOptions = options;
         break;
-------------- next part --------------
HTML����������������������������...
Download 



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