[Groonga-commit] groonga/groonga.org at 35efbc9 [gh-pages] blog en: update description

Back to archive index

Kentaro Hayashi null+****@clear*****
Fri Jul 28 22:38:30 JST 2017


Kentaro Hayashi	2017-07-28 22:38:30 +0900 (Fri, 28 Jul 2017)

  New Revision: 35efbc96e08ed535256690aa82e0fa7637bc2b1e
  https://github.com/groonga/groonga.org/commit/35efbc96e08ed535256690aa82e0fa7637bc2b1e

  Message:
    blog en: update description

  Modified files:
    en/_posts/2017-07-29-groonga-7.0.5.md

  Modified: en/_posts/2017-07-29-groonga-7.0.5.md (+21 -20)
===================================================================
--- en/_posts/2017-07-29-groonga-7.0.5.md    2017-07-27 18:35:24 +0900 (692fadc)
+++ en/_posts/2017-07-29-groonga-7.0.5.md    2017-07-28 22:38:30 +0900 (bb27afa)
@@ -15,19 +15,19 @@ How to install: [Install](/docs/install.html)
 
 Here are important changes in this release:
 
-  * [dump] Supported `--sort_hash_table` option
-  * Supported math_abs() function
-  * Dropped Ubuntu 16.10 (Yakkety Yak) support
+  * [dump] `--sort_hash_table` option has been supported
+  * math_abs() function has been supported
+  * Ubuntu 16.10 (Yakkety Yak) support has been dropped
 
-#### [dump] Supported `--sort_hash_table` option
+#### [dump] `--sort_hash_table` option has been supported
 
 In this release, dump command supported `--sort_hash_table` option.
 
-If this option is specified as `--sort_hash_table yes`, dump command shows sorted result by `_key`.
+If this option is specified as `--sort_hash_table yes`, dump command shows result sorted by `_key`.
 
 It is useful to check difference about dumped results of hash table.
 
-#### Supported math_abs() function
+#### math_abs() function has been supported
 
 In this release, math_abs() function was supported. This function is used to calculate absolute value.
 
@@ -37,29 +37,30 @@ Register math plugin to use this function.
 
 Here is the sample schema and data:
 
-    table_create Shops TABLE_HASH_KEY ShortText 
-    column_create Shops from_station COLUMN_SCALAR Int32
-
-    load --table Shops
+    table_create City TABLE_HASH_KEY ShortText
+    column_create City utc COLUMN_SCALAR Int32
+  
+    load --table City
     [
-    {"_key": "Coffee Shop",         "from_station":  50},
-    {"_key": "Donut & Coffee Shop", "from_station": 400},
-    {"_key": "Cake & Coffee Shop",  "from_station": 200}
+    {"_key": "Tokyo",    "utc": 9},
+    {"_key": "New York", "utc": -4}, 
+    {"_key": "Paris",    "utc": 2}
     ]
-
-Let's search nearest shops from office. assume that office is 250m from station.
+  
+Let's search near city from Singapore. In this context, near means
+that the value of time difference is smaller one.
 
 You can search it by the following query:
 
-    select Shops \
+    select City \
       --filter true \
-      --output_columns '_key, from_office' \
-      --scorer '_score = math_abs(250 - from_station)' \
+      --output_columns '_key, utc, _score' \
+      --scorer '_score = math_abs(8 - utc)' \
       --sort_keys _score
 
-#### Dropped Ubuntu 16.10 (Yakkety Yak) support
+#### Ubuntu 16.10 (Yakkety Yak) support has been dropped
 
-In this release, Ubuntu 16.10 (Yakkety Yak) support was dropped. It has reached EOL at July 20, 2017.
+In this release, Ubuntu 16.10 (Yakkety Yak) support was dropped. It has reached EOL on July 20, 2017.
 
 ### Conclusion
 
-------------- next part --------------
HTML����������������������������...
Télécharger 



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