null+****@clear*****
null+****@clear*****
2012年 6月 18日 (月) 17:04:30 JST
HAYASHI Kentaro 2012-06-18 17:04:30 +0900 (Mon, 18 Jun 2012) New Revision: fb26dd12216d98b08751410a8433eb7fb70a4ca6 https://github.com/groonga/groonga/commit/fb26dd12216d98b08751410a8433eb7fb70a4ca6 Log: doc: add execution examples about geo_distance Added files: doc/source/example/functions/geo_distance_distance_ellipsoid.log doc/source/example/functions/geo_distance_distance_rectangle.log doc/source/example/functions/geo_distance_distance_sphere.log doc/source/example/functions/geo_distance_location_ellipsoid.log doc/source/example/functions/geo_distance_location_rectangle.log doc/source/example/functions/geo_distance_location_sphere.log doc/source/example/functions/geo_distance_setup_distance.log doc/source/example/functions/geo_distance_setup_location.log Added: doc/source/example/functions/geo_distance_distance_ellipsoid.log (+16 -0) 100644 =================================================================== --- /dev/null +++ doc/source/example/functions/geo_distance_distance_ellipsoid.log 2012-06-18 17:04:30 +0900 (5c6ee60) @@ -0,0 +1,16 @@ +Execution example:: + + select Geo --output_columns distance --scorer 'distance = geo_distance("128452975x503157902", "155047000x508862800", "ellipsoid")' + # [ + # [0,0.0,0.0], + # [ + # [ + # [1], + # [ + # ["distance","Int32"] + # ], + # [0] + # ] + # ] + # ] + Added: doc/source/example/functions/geo_distance_distance_rectangle.log (+16 -0) 100644 =================================================================== --- /dev/null +++ doc/source/example/functions/geo_distance_distance_rectangle.log 2012-06-18 17:04:30 +0900 (943b899) @@ -0,0 +1,16 @@ +Execution example:: + + select Geo --output_columns distance --scorer 'distance = geo_distance("128452975x503157902", "155047000x508862800", "rectangle")' + # [ + # [0,0.0,0.0], + # [ + # [ + # [1], + # [ + # ["distance","Int32"] + # ], + # [830849] + # ] + # ] + # ] + Added: doc/source/example/functions/geo_distance_distance_sphere.log (+15 -0) 100644 =================================================================== --- /dev/null +++ doc/source/example/functions/geo_distance_distance_sphere.log 2012-06-18 17:04:30 +0900 (34d7692) @@ -0,0 +1,15 @@ +Execution example:: + + select Geo --output_columns distance --scorer 'distance = geo_distance("128452975x503157902", "155047000x508862800", "sphere")' + # [ + # [0,0.0,0.0], + # [ + # [ + # [1], + # [ + # ["distance","Int32"] + # ], + # [0] + # ] + # ] + # ] Added: doc/source/example/functions/geo_distance_location_ellipsoid.log (+15 -0) 100644 =================================================================== --- /dev/null +++ doc/source/example/functions/geo_distance_location_ellipsoid.log 2012-06-18 17:04:30 +0900 (78a910a) @@ -0,0 +1,15 @@ +Execution example:: + + select Stations --output_columns _score --filter 1 --scorer '_score = geo_distance(location, "155047000x508862800", "ellipsoid")' + # [ + # [0,0.0,0.0], + # [ + # [ + # [1], + # [ + # ["_score","Int32"] + # ], + # [831438] + # ] + # ] + # ] Added: doc/source/example/functions/geo_distance_location_rectangle.log (+15 -0) 100644 =================================================================== --- /dev/null +++ doc/source/example/functions/geo_distance_location_rectangle.log 2012-06-18 17:04:30 +0900 (82d38f5) @@ -0,0 +1,15 @@ +Execution example:: + + select Stations --output_columns _score --filter 1 --scorer '_score = geo_distance(location, "155047000x508862800", "rectangle")' + # [ + # [0,0.0,0.0], + # [ + # [ + # [1], + # [ + # ["_score","Int32"] + # ], + # [830849] + # ] + # ] + # ] Added: doc/source/example/functions/geo_distance_location_sphere.log (+15 -0) 100644 =================================================================== --- /dev/null +++ doc/source/example/functions/geo_distance_location_sphere.log 2012-06-18 17:04:30 +0900 (e66ade1) @@ -0,0 +1,15 @@ +Execution example:: + + select Stations --output_columns _score --filter 1 --scorer '_score = geo_distance(location, "155047000x508862800", "sphere")' + # [ + # [0,0.0,0.0], + # [ + # [ + # [1], + # [ + # ["_score","Int32"] + # ], + # [830802] + # ] + # ] + # ] Added: doc/source/example/functions/geo_distance_setup_distance.log (+12 -0) 100644 =================================================================== --- /dev/null +++ doc/source/example/functions/geo_distance_setup_distance.log 2012-06-18 17:04:30 +0900 (b7fadc6) @@ -0,0 +1,12 @@ +Execution example:: + + table_create Geo TABLE_HASH_KEY ShortText + # [[0,0.0,0.0],true] + column_create Geo distance COLUMN_SCALAR Int32 + # [[0,0.0,0.0],true] + load --table Geo + [ + {"_key": "the record for geo_distance() result"} + ] + # [[0,0.0,0.0],1] + Added: doc/source/example/functions/geo_distance_setup_location.log (+12 -0) 100644 =================================================================== --- /dev/null +++ doc/source/example/functions/geo_distance_setup_location.log 2012-06-18 17:04:30 +0900 (37a5c51) @@ -0,0 +1,12 @@ +Execution example:: + + table_create Stations TABLE_HASH_KEY ShortText + # [[0,0.0,0.0],true] + column_create Stations location COLUMN_SCALAR WGS84GeoPoint + # [[0,0.0,0.0],true] + load --table Stations + [ + ["_key", "location"], + ["Tokyo", "128452975x503157902"], + ] + # [[0,0.0,0.0],1] -------------- next part -------------- HTML$B$NE:IU%U%!%$%k$rJ]4I$7$^$7$?(B... Descargar