Difficulty: Beginner
Estimated Time: 10 minutes

In this tutorial you will learn how to perform geosearches in Manticore Search.

The enviroment will launch a small docker instance with Manticore Search installed a small Real-Time index containing data from geonames.org.

This scenario is based on the PHP Geo Example which can be found at https://github.com/adriannuta/SphinxGeoExample .

The scenario has explained how geo searches can be made in Manticore Search.

Manticore Geosearch example

Step 1 of 4

Step 1

Setup

Wait until the docker image is launched. For simplicity you will be logged directly in the docker environment.

Connecting to Manticore

Let's connect to Manticore using the MySQL client:

mysql -P9306 -h0

The geodemo index

First, let's look at the index structure

DESC geodemo;

The index contains the geo coordinates in both radians and degrees, as well as several properties like the name of the location, country and state code.

SELECT * FROM geodemo;