I would like to use the GEO2D function in Sphinx (SphinxQL) but I would like to use it without searching an index.
I have the polygon and the latitude and longitude already and just want to calculate if the point is inside the polygon. So this is what I want:
SELECT CONTAINS(GEOPOLY2D($polygon),$lat_deg, $long_deg)
in MySQL you could run a query without specifying a database:
SELECT 1+1
How could I do this in Sphinx? I already tried to run it with an index (FROM index LIMIT 1
) but that seems to do a full table scan and thus take a long time.
I could make a new index with just one record but maybe there is another way?