No description, website, or topics provided.
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.
css first commit Jun 10, 2013
img first commit Jun 10, 2013
js first commit Jun 10, 2013
scripts first commit Jun 10, 2013
template update menus Sep 19, 2016 Update Oct 26, 2017
facetmulti.php disable order by mva Sep 20, 2016
facetprices.php pagination fix #4 Jun 17, 2014
facetpricesnew.php pagination fix #4 Jun 17, 2014
filldb.php replaced IF segmentation with INTERVAL, some cleanups Jun 27, 2013
index.php pagination fix #4 Jun 17, 2014


These samples illustrate faceting using Manticore/Sphinx search.
Querying is made via SphinxQL using PDO driver.

Requirements :

Manticore or Sphinx search ( recommended 2.1.1 or higher)
PHP with PDO mysql

Please note that the code is made for 2.1.1. The code use LIKE operator on SHOW META.
For older versions, use only SHOW META, fetch all rows and lookup for the row that has the 'total_found'.

Installation :

Edit scripts/sphinx.conf for setting proper paths and db credentials The example use a single RealTime index which can be generated using filldb.php script.
Start searchd first with

$ searchd -c /path/to/sphinx.conf    

Generate the RT index

$ php filldb.php

Live demo with Sphinx:

Sphinx Samples is free software, and is released under the terms of the GPL version 2 or (at your option) any later version.

Manticore website : Manticore repository : Sphinx website :
Sphinx read-only repository :