[Groonga-commit] groonga/gcs [master] Add scenarios for conflicting index field options

Back to archive index

YUKI Hiroshi null+****@clear*****
Thu Nov 15 19:06:01 JST 2012


YUKI Hiroshi	2012-11-15 19:06:01 +0900 (Thu, 15 Nov 2012)

  New Revision: f9e336bfa4e21dacc3a4bdef577b414cfc5c0fda
  https://github.com/groonga/gcs/commit/f9e336bfa4e21dacc3a4bdef577b414cfc5c0fda

  Log:
    Add scenarios for conflicting index field options

  Modified files:
    test/scenarios/configuration/DefineIndexField.json

  Modified: test/scenarios/configuration/DefineIndexField.json (+54 -6)
===================================================================
--- test/scenarios/configuration/DefineIndexField.json    2012-11-15 19:00:41 +0900 (f4620e5)
+++ test/scenarios/configuration/DefineIndexField.json    2012-11-15 19:06:01 +0900 (2ad0c46)
@@ -21,14 +21,27 @@
                   "DomainName": "companies",
                   "IndexField.IndexFieldName": "name",
                   "IndexField.IndexFieldType": "text",
-                  "IndexField.TextOptions.FacetEnabled": "true",
                   "IndexField.TextOptions.ResultEnabled": "true" } }
   ],
 
-  { "name"  : "text, with options",
+  { "name"  : "text, with result enabled",
     "params": { "Action": "DefineIndexField",
                 "DomainName": "companies",
-                "IndexField.IndexFieldName": "name_with_options",
+                "IndexField.IndexFieldName": "name_with_result_enabled",
+                "IndexField.IndexFieldType": "text",
+                "IndexField.TextOptions.ResultEnabled": "true" } },
+
+  { "name"  : "text, with facet enabled",
+    "params": { "Action": "DefineIndexField",
+                "DomainName": "companies",
+                "IndexField.IndexFieldName": "name_with_facet_enabled",
+                "IndexField.IndexFieldType": "text",
+                "IndexField.TextOptions.ResultEnabled": "true" } },
+
+  { "name"  : "text, with conflicting options",
+    "params": { "Action": "DefineIndexField",
+                "DomainName": "companies",
+                "IndexField.IndexFieldName": "name_with_conflicting_options",
                 "IndexField.IndexFieldType": "text",
                 "IndexField.TextOptions.FacetEnabled": "true",
                 "IndexField.TextOptions.ResultEnabled": "true" } },
@@ -58,19 +71,54 @@
                   "IndexField.IndexFieldName": "product",
                   "IndexField.IndexFieldType": "literal",
                   "IndexField.LiteralOptions.SearchEnabled": "true",
-                  "IndexField.LiteralOptions.FacetEnabled": "true",
                   "IndexField.LiteralOptions.ResultEnabled": "true" } }
   ],
 
-  { "name"  : "literal, with options",
+  { "name"  : "literal, with search enabled",
+    "params": { "Action": "DefineIndexField",
+                "DomainName": "companies",
+                "IndexField.IndexFieldName": "product_with_search_enabled",
+                "IndexField.IndexFieldType": "literal",
+                "IndexField.LiteralOptions.SearchEnabled": "true" } },
+
+  { "name"  : "literal, with facet enabled",
+    "params": { "Action": "DefineIndexField",
+                "DomainName": "companies",
+                "IndexField.IndexFieldName": "product_with_facet_enabled",
+                "IndexField.IndexFieldType": "literal",
+                "IndexField.LiteralOptions.FacetEnabled": "true" } },
+
+  { "name"  : "literal, with result enabled",
     "params": { "Action": "DefineIndexField",
                 "DomainName": "companies",
-                "IndexField.IndexFieldName": "product_with_options",
+                "IndexField.IndexFieldName": "product_with_result_enabled",
+                "IndexField.IndexFieldType": "literal",
+                "IndexField.LiteralOptions.ResultEnabled": "true" } },
+
+  { "name"  : "literal, with search_and_result",
+    "params": { "Action": "DefineIndexField",
+                "DomainName": "companies",
+                "IndexField.IndexFieldName": "product_with_search_and_result",
                 "IndexField.IndexFieldType": "literal",
                 "IndexField.LiteralOptions.SearchEnabled": "true",
+                "IndexField.LiteralOptions.ResultEnabled": "true" } },
+
+  { "name"  : "literal, with facet_and_result",
+    "params": { "Action": "DefineIndexField",
+                "DomainName": "companies",
+                "IndexField.IndexFieldName": "product_with_facet_and_result",
+                "IndexField.IndexFieldType": "literal",
                 "IndexField.LiteralOptions.FacetEnabled": "true",
                 "IndexField.LiteralOptions.ResultEnabled": "true" } },
 
+  { "name"  : "literal, with search_and_facet",
+    "params": { "Action": "DefineIndexField",
+                "DomainName": "companies",
+                "IndexField.IndexFieldName": "product_with_search_and_facet",
+                "IndexField.IndexFieldType": "literal",
+                "IndexField.LiteralOptions.SearchEnabled": "true",
+                "IndexField.LiteralOptions.FacetEnabled": "true" } },
+
   [
     { "name"  : "setup: define temporary text field",
       "params": { "Action": "DefineIndexField",
-------------- next part --------------
HTML����������������������������...
Download 



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