Skip to content
This repository


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

An example of how to do faceted searching with Sphinx.

branch: master

Fetching latest commit…


Cannot retrieve the latest commit at this time

Octocat-spinner-32 config.php
Octocat-spinner-32 index.html
Octocat-spinner-32 load.rb
Octocat-spinner-32 schema.sql
Octocat-spinner-32 searchapi.php
Octocat-spinner-32 searchrequest.php
Octocat-spinner-32 searchresponse.php
Octocat-spinner-32 sphinx.conf
Octocat-spinner-32 spinner.gif

Example Sphinx Faceted Search


This is an example of doing faceted search using the Sphinx Search engine.


The Sphinx Search engine, the Sphinx Search PHP API and a database modeled against the Stack Overflow CC data dump.


  • Install the Sphinx Search engine
  • Install the PHP scripts and the index.html file in a directory that can run PHP
  • Modify the config.php file to reflect your Sphinx Search server and database
  • Load the database with data from the Stack Overflow CC data dump
  • Run the Sphinx Search engine indexer again the database
  • Modify the index.html file to include a jQuery key from the Google CDN


Copyright (c) 2010 Carson McDonald

This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License version 2 as published by the Free Software Foundation.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.

Something went wrong with that request. Please try again.