[Groonga-commit] groonga/groonga [master] show also location.

Back to archive index

null+****@clear***** null+****@clear*****
2010年 8月 19日 (木) 15:11:02 JST


Kouhei Sutou	2010-08-19 06:11:02 +0000 (Thu, 19 Aug 2010)

  New Revision: 8ecabae10b8234bc0135e6f5c072c86b577b5855

  Log:
    show also location.

  Modified files:
    test/unit/story/test-taiyaki.c

  Modified: test/unit/story/test-taiyaki.c (+9 -8)
===================================================================
--- test/unit/story/test-taiyaki.c    2010-08-19 03:30:37 +0000 (a57784b)
+++ test/unit/story/test-taiyaki.c    2010-08-19 06:11:02 +0000 (7888a78)
@@ -104,19 +104,20 @@ test_in_circle(void)
 
   cut_assert_equal_string(
     "[[[6],"
-    "[[\"name\",\"ShortText\"],[\"_score\",\"Int32\"]],"
-    "[\"銀座 かずや\",795],"
-    "[\"たいやき神田達磨 八重洲店\",1079],"
-    "[\"たい焼き鉄次 大丸東京店\",1390],"
-    "[\"築地 さのきや\",1723],"
-    "[\"にしみや 甘味処\",2000],"
-    "[\"しげ田\",2272]"
+    "[[\"name\",\"ShortText\"],[\"_score\",\"Int32\"],"
+    "[\"location\",\"WGS84GeoPoint\"]],"
+    "[\"銀座 かずや\",795,\"130055008x504968095\"],"
+    "[\"たいやき神田達磨 八重洲店\",1079,\"130094061x505025099\"],"
+    "[\"たい焼き鉄次 大丸東京店\",1390,\"130089012x505045070\"],"
+    "[\"築地 さのきや\",1723,\"130019020x505027021\"],"
+    "[\"にしみや 甘味処\",2000,\"130038025x505066028\"],"
+    "[\"しげ田\",2272,\"130046026x505082073\"]"
     "]]",
     send_command(
       cut_take_printf(
         "select Shops "
         "--sortby '+_score, +name' "
-        "--output_columns 'name, _score' "
+        "--output_columns 'name, _score, location' "
         "--filter 'geo_in_circle(location, \"%s\", %d)' "
         "--scorer '_score=geo_distance(location, \"%s\")'",
         grn_test_location_string(yurakucho_latitude, yurakucho_longitude),




Groonga-commit メーリングリストの案内
Back to archive index