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

Back to archive index

HAYASHI Kentaro null+****@clear*****
Wed Mar 27 18:56:25 JST 2013


HAYASHI Kentaro	2013-03-27 18:56:25 +0900 (Wed, 27 Mar 2013)

  New Revision: 1506e0a85bf54491ccf668c2374ed39d0b4cba48
  https://github.com/groonga/groonga/commit/1506e0a85bf54491ccf668c2374ed39d0b4cba48

  Message:
    doc: add execution examples about sub_filter

  Added files:
    doc/source/example/reference/functions/sub_filter/usage_setup_data.log
    doc/source/example/reference/functions/sub_filter/usage_setup_schema.log
    doc/source/example/reference/functions/sub_filter/usage_with_sub_filter.log
    doc/source/example/reference/functions/sub_filter/usage_without_sub_filter.log
  Modified files:
    doc/files.am

  Modified: doc/files.am (+8 -0)
===================================================================
--- doc/files.am    2013-03-27 18:40:13 +0900 (c5fb9e3)
+++ doc/files.am    2013-03-27 18:56:25 +0900 (d17c57f)
@@ -89,6 +89,10 @@ absolute_source_files = \
 	$(top_srcdir)/doc/source/example/reference/functions/snippet_html/usage_basic.log \
 	$(top_srcdir)/doc/source/example/reference/functions/snippet_html/usage_setup.log \
 	$(top_srcdir)/doc/source/example/reference/functions/snippet_html/usage_string_literal.log \
+	$(top_srcdir)/doc/source/example/reference/functions/sub_filter/usage_setup_data.log \
+	$(top_srcdir)/doc/source/example/reference/functions/sub_filter/usage_setup_schema.log \
+	$(top_srcdir)/doc/source/example/reference/functions/sub_filter/usage_with_sub_filter.log \
+	$(top_srcdir)/doc/source/example/reference/functions/sub_filter/usage_without_sub_filter.log \
 	$(top_srcdir)/doc/source/example/reference/grn_expr/query_syntax/setup.log \
 	$(top_srcdir)/doc/source/example/reference/grn_expr/query_syntax/simple_equal.log \
 	$(top_srcdir)/doc/source/example/reference/grn_expr/query_syntax/simple_full_text_search.log \
@@ -524,6 +528,10 @@ source_files_relative_from_doc_dir = \
 	source/example/reference/functions/snippet_html/usage_basic.log \
 	source/example/reference/functions/snippet_html/usage_setup.log \
 	source/example/reference/functions/snippet_html/usage_string_literal.log \
+	source/example/reference/functions/sub_filter/usage_setup_data.log \
+	source/example/reference/functions/sub_filter/usage_setup_schema.log \
+	source/example/reference/functions/sub_filter/usage_with_sub_filter.log \
+	source/example/reference/functions/sub_filter/usage_without_sub_filter.log \
 	source/example/reference/grn_expr/query_syntax/setup.log \
 	source/example/reference/grn_expr/query_syntax/simple_equal.log \
 	source/example/reference/grn_expr/query_syntax/simple_full_text_search.log \

  Added: doc/source/example/reference/functions/sub_filter/usage_setup_data.log (+17 -0) 100644
===================================================================
--- /dev/null
+++ doc/source/example/reference/functions/sub_filter/usage_setup_data.log    2013-03-27 18:56:25 +0900 (1132cd3)
@@ -0,0 +1,17 @@
+Execution example::
+
+  load --table Comment
+  [
+  {"_key": 1, "name": "A", "content": "groonga"},
+  {"_key": 2, "name": "B", "content": "groonga"},
+  {"_key": 3, "name": "C", "content": "rroonga"},
+  {"_key": 4, "name": "A", "content": "mroonga"},
+  ]
+  # [[0, 1337566253.89858, 0.000355720520019531], 4]
+  load --table Blog
+  [
+  {"_key": "groonga's blog", "content": "content of groonga's blog", comments: [1, 2, 3]},
+  {"_key": "mroonga's blog", "content": "content of mroonga's blog", comments: [2, 3, 4]},
+  {"_key": "rroonga's blog", "content": "content of rroonga's blog", comments: [3]},
+  ]
+  # [[0, 1337566253.89858, 0.000355720520019531], 3]

  Added: doc/source/example/reference/functions/sub_filter/usage_setup_schema.log (+26 -0) 100644
===================================================================
--- /dev/null
+++ doc/source/example/reference/functions/sub_filter/usage_setup_schema.log    2013-03-27 18:56:25 +0900 (8a1c96c)
@@ -0,0 +1,26 @@
+Execution example::
+
+  table_create Comment TABLE_PAT_KEY UInt32
+  # [[0, 1337566253.89858, 0.000355720520019531], true]
+  column_create Comment name COLUMN_SCALAR ShortText
+  # [[0, 1337566253.89858, 0.000355720520019531], true]
+  column_create Comment content COLUMN_SCALAR ShortText
+  # [[0, 1337566253.89858, 0.000355720520019531], true]
+  table_create Blog TABLE_PAT_KEY ShortText
+  # [[0, 1337566253.89858, 0.000355720520019531], true]
+  column_create Blog title COLUMN_SCALAR ShortText
+  # [[0, 1337566253.89858, 0.000355720520019531], true]
+  column_create Blog content COLUMN_SCALAR ShortText
+  # [[0, 1337566253.89858, 0.000355720520019531], true]
+  column_create Blog comments COLUMN_VECTOR Comment
+  # [[0, 1337566253.89858, 0.000355720520019531], true]
+  column_create Comment blog_comment_index COLUMN_INDEX Blog comments
+  # [[0, 1337566253.89858, 0.000355720520019531], true]
+  table_create Lexicon TABLE_PAT_KEY ShortText --default_tokenizer TokenBigram
+  # [[0, 1337566253.89858, 0.000355720520019531], true]
+  column_create Lexicon comment_content COLUMN_INDEX|WITH_POSITION Comment content
+  # [[0, 1337566253.89858, 0.000355720520019531], true]
+  column_create Lexicon comment_name COLUMN_INDEX|WITH_POSITION Comment name
+  # [[0, 1337566253.89858, 0.000355720520019531], true]
+  column_create Lexicon blog_content COLUMN_INDEX|WITH_POSITION Blog content
+  # [[0, 1337566253.89858, 0.000355720520019531], true]

  Added: doc/source/example/reference/functions/sub_filter/usage_with_sub_filter.log (+30 -0) 100644
===================================================================
--- /dev/null
+++ doc/source/example/reference/functions/sub_filter/usage_with_sub_filter.log    2013-03-27 18:56:25 +0900 (c287faa)
@@ -0,0 +1,30 @@
+Execution example::
+
+  select Blog --output_columns _key \
+  # [
+  #   [
+  #     0, 
+  #     1337566253.89858, 
+  #     0.000355720520019531
+  #   ], 
+  #   [
+  #     [
+  #       [
+  #         2
+  #       ], 
+  #       [
+  #         [
+  #           "_key", 
+  #           "ShortText"
+  #         ]
+  #       ], 
+  #       [
+  #         "groonga's blog"
+  #       ], 
+  #       [
+  #         "mroonga's blog"
+  #       ]
+  #     ]
+  #   ]
+  # ]
+    --filter 'sub_filter(comments, "name @ \\"A\\" && content @ \\"groonga\\"")'

  Added: doc/source/example/reference/functions/sub_filter/usage_without_sub_filter.log (+4 -0) 100644
===================================================================
--- /dev/null
+++ doc/source/example/reference/functions/sub_filter/usage_without_sub_filter.log    2013-03-27 18:56:25 +0900 (40edcff)
@@ -0,0 +1,4 @@
+Execution example::
+
+  select Blog --output_columns _key \
+    --filter "comments.name @ \"A\" && comments.content @ \"groonga\""
-------------- next part --------------
HTML����������������������������...
下载 



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