No description, website, or topics provided.
PHP CSS
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
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
README.md Update README.md Oct 26, 2017
common.php
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

README.md

SphinxFacetingExample

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

Requirements :

LAMP
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:

http://demos.sphinxsearch.com/SphinxFacetingExample/
License:

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 : https://manticoresearch.com/ Manticore repository : https://github.com/manticoresoftware/manticore Sphinx website : http://sphinxsearch.com/
Sphinx read-only repository : https://github.com/sphinxsearch/sphinx