[Groonga-commit] groonga/groonga at 8a78025 [master] doc: update math_abs examples

Back to archive index

Kentaro Hayashi null+****@clear*****
Tue Jul 4 14:48:17 JST 2017


Kentaro Hayashi	2017-07-04 14:48:17 +0900 (Tue, 04 Jul 2017)

  New Revision: 8a780250aaa18776048a32457a88ffcbfd1df1c3
  https://github.com/groonga/groonga/commit/8a780250aaa18776048a32457a88ffcbfd1df1c3

  Merged 9d192b5: Merge pull request #727 from kenhys/doc-math-abs

  Message:
    doc: update math_abs examples

  Added files:
    doc/source/example/reference/functions/math_abs/nearest_shops.log
    doc/source/example/reference/functions/math_abs/usage_setup_data.log
    doc/source/example/reference/functions/math_abs/usage_setup_schema.log
  Modified files:
    doc/files.am

  Modified: doc/files.am (+10 -0)
===================================================================
--- doc/files.am    2017-07-04 14:48:01 +0900 (2b94110)
+++ doc/files.am    2017-07-04 14:48:17 +0900 (7040130)
@@ -366,6 +366,9 @@ absolute_source_files = \
 	$(top_srcdir)/doc/source/example/reference/functions/in_values/usage_only.log \
 	$(top_srcdir)/doc/source/example/reference/functions/in_values/usage_setup_data.log \
 	$(top_srcdir)/doc/source/example/reference/functions/in_values/usage_setup_schema.log \
+	$(top_srcdir)/doc/source/example/reference/functions/math_abs/nearest_shops.log \
+	$(top_srcdir)/doc/source/example/reference/functions/math_abs/usage_setup_data.log \
+	$(top_srcdir)/doc/source/example/reference/functions/math_abs/usage_setup_schema.log \
 	$(top_srcdir)/doc/source/example/reference/functions/prefix_rk_search/usage_add_no_reading_completion_target.log \
 	$(top_srcdir)/doc/source/example/reference/functions/prefix_rk_search/usage_loose_completion.log \
 	$(top_srcdir)/doc/source/example/reference/functions/prefix_rk_search/usage_prefix_rk_only_completion.log \
@@ -830,6 +833,7 @@ absolute_source_files = \
 	$(top_srcdir)/doc/source/reference/functions/html_untag.rst \
 	$(top_srcdir)/doc/source/reference/functions/in_records.rst \
 	$(top_srcdir)/doc/source/reference/functions/in_values.rst \
+	$(top_srcdir)/doc/source/reference/functions/math_abs.rst \
 	$(top_srcdir)/doc/source/reference/functions/now.rst \
 	$(top_srcdir)/doc/source/reference/functions/number_classify.rst \
 	$(top_srcdir)/doc/source/reference/functions/prefix_rk_search.rst \
@@ -1288,6 +1292,9 @@ source_files_relative_from_doc_dir = \
 	source/example/reference/functions/in_values/usage_only.log \
 	source/example/reference/functions/in_values/usage_setup_data.log \
 	source/example/reference/functions/in_values/usage_setup_schema.log \
+	source/example/reference/functions/math_abs/nearest_shops.log \
+	source/example/reference/functions/math_abs/usage_setup_data.log \
+	source/example/reference/functions/math_abs/usage_setup_schema.log \
 	source/example/reference/functions/prefix_rk_search/usage_add_no_reading_completion_target.log \
 	source/example/reference/functions/prefix_rk_search/usage_loose_completion.log \
 	source/example/reference/functions/prefix_rk_search/usage_prefix_rk_only_completion.log \
@@ -1752,6 +1759,7 @@ source_files_relative_from_doc_dir = \
 	source/reference/functions/html_untag.rst \
 	source/reference/functions/in_records.rst \
 	source/reference/functions/in_values.rst \
+	source/reference/functions/math_abs.rst \
 	source/reference/functions/now.rst \
 	source/reference/functions/number_classify.rst \
 	source/reference/functions/prefix_rk_search.rst \
@@ -2125,6 +2133,7 @@ html_files_relative_from_locale_dir = \
 	html/_sources/reference/functions/html_untag.txt \
 	html/_sources/reference/functions/in_records.txt \
 	html/_sources/reference/functions/in_values.txt \
+	html/_sources/reference/functions/math_abs.txt \
 	html/_sources/reference/functions/now.txt \
 	html/_sources/reference/functions/number_classify.txt \
 	html/_sources/reference/functions/prefix_rk_search.txt \
@@ -2398,6 +2407,7 @@ html_files_relative_from_locale_dir = \
 	html/reference/functions/html_untag.html \
 	html/reference/functions/in_records.html \
 	html/reference/functions/in_values.html \
+	html/reference/functions/math_abs.html \
 	html/reference/functions/now.html \
 	html/reference/functions/number_classify.html \
 	html/reference/functions/prefix_rk_search.html \

  Added: doc/source/example/reference/functions/math_abs/nearest_shops.log (+39 -0) 100644
===================================================================
--- /dev/null
+++ doc/source/example/reference/functions/math_abs/nearest_shops.log    2017-07-04 14:48:17 +0900 (7d21df3)
@@ -0,0 +1,39 @@
+Execution example::
+
+  select Shops --filter true --output_columns '_key, from_office' --scorer 'from_office = math_abs(250 - from_station)' --sort_keys from_office
+  # [
+  #   [
+  #     0, 
+  #     1337566253.89858, 
+  #     0.000355720520019531
+  #   ], 
+  #   [
+  #     [
+  #       [
+  #         3
+  #       ], 
+  #       [
+  #         [
+  #           "_key", 
+  #           "ShortText"
+  #         ], 
+  #         [
+  #           "from_office", 
+  #           "Int32"
+  #         ]
+  #       ], 
+  #       [
+  #         "Cake & Coffee Shop", 
+  #         50
+  #       ], 
+  #       [
+  #         "Donut & Coffee Shop", 
+  #         150
+  #       ], 
+  #       [
+  #         "Coffee Shop", 
+  #         200
+  #       ]
+  #     ]
+  #   ]
+  # ]

  Added: doc/source/example/reference/functions/math_abs/usage_setup_data.log (+9 -0) 100644
===================================================================
--- /dev/null
+++ doc/source/example/reference/functions/math_abs/usage_setup_data.log    2017-07-04 14:48:17 +0900 (e634ab8)
@@ -0,0 +1,9 @@
+Execution example::
+
+  load --table Shops
+  [
+  {"_key": "Coffee Shop",         "from_station":  50},
+  {"_key": "Donut & Coffee Shop", "from_station": 400},
+  {"_key": "Cake & Coffee Shop",  "from_station": 200}
+  ]
+  # [[0, 1337566253.89858, 0.000355720520019531], 3]

  Added: doc/source/example/reference/functions/math_abs/usage_setup_schema.log (+8 -0) 100644
===================================================================
--- /dev/null
+++ doc/source/example/reference/functions/math_abs/usage_setup_schema.log    2017-07-04 14:48:17 +0900 (a4a28b4)
@@ -0,0 +1,8 @@
+Execution example::
+
+  table_create Shops TABLE_HASH_KEY ShortText
+  # [[0, 1337566253.89858, 0.000355720520019531], true]
+  column_create Shops from_station COLUMN_SCALAR Int32
+  # [[0, 1337566253.89858, 0.000355720520019531], true]
+  column_create Shops from_office COLUMN_SCALAR Int32
+  # [[0, 1337566253.89858, 0.000355720520019531], true]
-------------- next part --------------
HTML����������������������������...
Télécharger 



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