[Groonga-commit] groonga/groonga [master] doc: add execution examples

Zurück zum Archiv-Index

null+****@clear***** null+****@clear*****
2012年 6月 13日 (水) 10:00:12 JST


Kouhei Sutou	2012-06-13 10:00:12 +0900 (Wed, 13 Jun 2012)

  New Revision: 61388f99f05a51e076275af8445e5074e471756f

  Log:
    doc: add execution examples

  Added files:
    doc/source/example/spec/query_syntax/simple_grouping.log
    doc/source/example/spec/query_syntax/simple_logical_and.log
    doc/source/example/spec/query_syntax/simple_logical_not.log
    doc/source/example/spec/query_syntax/simple_logical_or.log
  Modified files:
    doc/source/example/spec/query_syntax/setup.log

  Modified: doc/source/example/spec/query_syntax/setup.log (+1 -1)
===================================================================
--- doc/source/example/spec/query_syntax/setup.log    2012-06-13 09:59:01 +0900 (d0d4b7c)
+++ doc/source/example/spec/query_syntax/setup.log    2012-06-13 10:00:12 +0900 (27436e0)
@@ -1,8 +1,8 @@
 Execution example::
 
   table_create Entries TABLE_HASH_KEY ShortText
-  column_create Entries content COLUMN_SCALAR Text
   # [[0, 1337566253.89858, 0.000355720520019531], true]
+  column_create Entries content COLUMN_SCALAR Text
   # [[0, 1337566253.89858, 0.000355720520019531], true]
   column_create Entries n_likes COLUMN_SCALAR UInt32
   # [[0, 1337566253.89858, 0.000355720520019531], true]

  Added: doc/source/example/spec/query_syntax/simple_grouping.log (+92 -0) 100644
===================================================================
--- /dev/null
+++ doc/source/example/spec/query_syntax/simple_grouping.log    2012-06-13 10:00:12 +0900 (7203651)
@@ -0,0 +1,92 @@
+Execution example::
+
+  select Entries --query 'n_likes:<5 content:@senna OR content:@fast'
+  # [
+  #   [
+  #     0, 
+  #     1337566253.89858, 
+  #     0.000355720520019531
+  #   ], 
+  #   [
+  #     [
+  #       [
+  #         3
+  #       ], 
+  #       [
+  #         [
+  #           "_id", 
+  #           "UInt32"
+  #         ], 
+  #         [
+  #           "_key", 
+  #           "ShortText"
+  #         ], 
+  #         [
+  #           "content", 
+  #           "Text"
+  #         ], 
+  #         [
+  #           "n_likes", 
+  #           "UInt32"
+  #         ]
+  #       ], 
+  #       [
+  #         4, 
+  #         "Good-bye Senna", 
+  #         "I migrated all Senna system!", 
+  #         3
+  #       ], 
+  #       [
+  #         2, 
+  #         "Groonga", 
+  #         "I started to use groonga. It's very fast!", 
+  #         10
+  #       ], 
+  #       [
+  #         3, 
+  #         "Mroonga", 
+  #         "I also started to use mroonga. It's also very fast! Really fast!", 
+  #         15
+  #       ]
+  #     ]
+  #   ]
+  # ]
+  select Entries --query 'n_likes:<5 (content:@senna OR content:@fast)'
+  # [
+  #   [
+  #     0, 
+  #     1337566253.89858, 
+  #     0.000355720520019531
+  #   ], 
+  #   [
+  #     [
+  #       [
+  #         1
+  #       ], 
+  #       [
+  #         [
+  #           "_id", 
+  #           "UInt32"
+  #         ], 
+  #         [
+  #           "_key", 
+  #           "ShortText"
+  #         ], 
+  #         [
+  #           "content", 
+  #           "Text"
+  #         ], 
+  #         [
+  #           "n_likes", 
+  #           "UInt32"
+  #         ]
+  #       ], 
+  #       [
+  #         4, 
+  #         "Good-bye Senna", 
+  #         "I migrated all Senna system!", 
+  #         3
+  #       ]
+  #     ]
+  #   ]
+  # ]

  Added: doc/source/example/spec/query_syntax/simple_logical_and.log (+41 -0) 100644
===================================================================
--- /dev/null
+++ doc/source/example/spec/query_syntax/simple_logical_and.log    2012-06-13 10:00:12 +0900 (12568a3)
@@ -0,0 +1,41 @@
+Execution example::
+
+  select Entries --query 'n_likes:>=10 + content:@groonga'
+  # [
+  #   [
+  #     0, 
+  #     1337566253.89858, 
+  #     0.000355720520019531
+  #   ], 
+  #   [
+  #     [
+  #       [
+  #         1
+  #       ], 
+  #       [
+  #         [
+  #           "_id", 
+  #           "UInt32"
+  #         ], 
+  #         [
+  #           "_key", 
+  #           "ShortText"
+  #         ], 
+  #         [
+  #           "content", 
+  #           "Text"
+  #         ], 
+  #         [
+  #           "n_likes", 
+  #           "UInt32"
+  #         ]
+  #       ], 
+  #       [
+  #         2, 
+  #         "Groonga", 
+  #         "I started to use groonga. It's very fast!", 
+  #         10
+  #       ]
+  #     ]
+  #   ]
+  # ]

  Added: doc/source/example/spec/query_syntax/simple_logical_not.log (+41 -0) 100644
===================================================================
--- /dev/null
+++ doc/source/example/spec/query_syntax/simple_logical_not.log    2012-06-13 10:00:12 +0900 (dcd5fb9)
@@ -0,0 +1,41 @@
+Execution example::
+
+  select Entries --query 'n_likes:>=10 - content:@groonga'
+  # [
+  #   [
+  #     0, 
+  #     1337566253.89858, 
+  #     0.000355720520019531
+  #   ], 
+  #   [
+  #     [
+  #       [
+  #         1
+  #       ], 
+  #       [
+  #         [
+  #           "_id", 
+  #           "UInt32"
+  #         ], 
+  #         [
+  #           "_key", 
+  #           "ShortText"
+  #         ], 
+  #         [
+  #           "content", 
+  #           "Text"
+  #         ], 
+  #         [
+  #           "n_likes", 
+  #           "UInt32"
+  #         ]
+  #       ], 
+  #       [
+  #         3, 
+  #         "Mroonga", 
+  #         "I also started to use mroonga. It's also very fast! Really fast!", 
+  #         15
+  #       ]
+  #     ]
+  #   ]
+  # ]

  Added: doc/source/example/spec/query_syntax/simple_logical_or.log (+47 -0) 100644
===================================================================
--- /dev/null
+++ doc/source/example/spec/query_syntax/simple_logical_or.log    2012-06-13 10:00:12 +0900 (c90c0e6)
@@ -0,0 +1,47 @@
+Execution example::
+
+  select Entries --query 'n_likes:>10 OR content:@senna'
+  # [
+  #   [
+  #     0, 
+  #     1337566253.89858, 
+  #     0.000355720520019531
+  #   ], 
+  #   [
+  #     [
+  #       [
+  #         2
+  #       ], 
+  #       [
+  #         [
+  #           "_id", 
+  #           "UInt32"
+  #         ], 
+  #         [
+  #           "_key", 
+  #           "ShortText"
+  #         ], 
+  #         [
+  #           "content", 
+  #           "Text"
+  #         ], 
+  #         [
+  #           "n_likes", 
+  #           "UInt32"
+  #         ]
+  #       ], 
+  #       [
+  #         3, 
+  #         "Mroonga", 
+  #         "I also started to use mroonga. It's also very fast! Really fast!", 
+  #         15
+  #       ], 
+  #       [
+  #         4, 
+  #         "Good-bye Senna", 
+  #         "I migrated all Senna system!", 
+  #         3
+  #       ]
+  #     ]
+  #   ]
+  # ]




Groonga-commit メーリングリストの案内
Zurück zum Archiv-Index