Feature #1237

位置情報検索対応

Added by Kouhei Sutou 5 months ago.

Status:新規 Start date:01/03/2012
Priority:Normal Due date:
Assignee:- % Done:

0%

Category:-
Target version:1.3.x

Description

問題

Groonga::Context#selectだとgeo_in_rectangleが使えるけどGroonga::Table#selectでは使えない。

期待する状態

Groonga::Table#selectでRubyっぽいAPIでgeo_in_rectangleを使える。

解決方法

どんなAPIがいいのかしら。geo_in_rectangle()はカラムに結びついた関数だからrecord.column.geo_in_rectangle(...)でもよさそうだけど、rand()とかだとrand()としたくなりそう。snippet()はカラムに結びついている系か。

@rand() < 1@とかやろうとすると評価する環境をすり替えないといけないから嫌だなぁ。どうしよう。

Also available in: Atom PDF