Sphinx Search Beginner's Guide

Implement full-text search with lightning speed and accuracy using Sphinx

Sphinx Search Beginner's Guide

Beginner's Guide
Abbas Ali

1 customer reviews
Implement full-text search with lightning speed and accuracy using Sphinx
$23.99
$39.99
RRP $23.99
RRP $39.99
eBook
Print + eBook
$29.99 p/month

Subscribe Now

Download this title FREE and instantly access over 3,500 courses today!

With unlimited access to a constantly growing library of over 3,500 courses, a subscription to Mapt gives you everything you need to get that next promotion or to land that dream job. Cancel anytime.

+ Collection
Free Sample

Book Details

ISBN 139781849512541
Paperback244 pages

Book Description

Sphinx is an open-source full-text search server, designed from the ground up with a focus on performance, relevance, and integration simplicity. With Sphinx, you can either batch index and search data stored in an SQL database, NoSQL storage, or just files quickly and easily — or index and search data on the fly, working with Sphinx pretty much as a database server.

Sphinx Search Beginner's Guide serves as a guide to everything you need to know about running a Sphinx Search Engine. In today's world, search is an integral part of any application and having a reliable search engine like Sphinx Search can be the difference between running a successful and unsuccessful business. What good is being on the Web if no one knows you are there? It is easy to build a proficient search engine with Sphinx Search Beginner's Guide to hand.

This practical guide provides insight into one of the most popular open source search engines, Sphinx. You will learn how to set up Sphinx on your own server, with the basics of how a search engine works explained in brief. You will learn how to create an index using Sphinx and then perform a search on that index using the client API, as well as learning how to configure Sphinx to get the most out of it. You will also be shown how Sphinx gives quality search results by relevance ranking. The book will help a beginner in all possible ways to create both simple and complex search forms in their applications. It's easy to use Sphinx Search engine, when you have the Sphinx Search Beginner's Guide to hand.

Table of Contents

Chapter 1: Setting Up Sphinx
What you need to know
Different ways of performing a search
Sphinx—a full-text search engine
Installation
Time for action - installation on Linux
Time for action - installation on Windows
Time for action - installation on a Mac
Summary
Chapter 2: Getting Started
Checking the installation
Full-text search
Time for action - normal search in MySQL
Overview of Sphinx
Time for action - Sphinx in action
Why use Sphinx for full-text searching?
Summary
Chapter 3: Indexing
What are indexes?
Index attributes
Data sources
Time for action - creating database tables for a blog
Time for action - populate the database tables
Time for action - creating the Sphinx configuration file
Time for action - adding attributes to the index
Time for action - Adding an MVA to the index
Time for action - creating index (without attributes)
Time for action - add attributes to schema
Time for action - create index with schema defined in configuration file
Summary
Chapter 4: Searching
Client API implementations for Sphinx
Search using client API
Time for action - creating a basic search script
Time for action - searching with different matching modes
Time for action - searching using Boolean query syntax
Time for action - searching with extended query syntax
Filtering full-text search results
Time for action - filtering the result set
Weighting search results
Time for action - weighting search results
Sorting modes
Grouping search results
Summary
Chapter 5: Feed Search
The application
Time for action - creating the MySQL database and tables
Time for action - setting up the feeds application
Time for action - creating a form to add feeds
Time for action - adding code to save feed
Time for action - create the index
Time for action - adding code to avoid duplicate items
Time for action - adding the delta index
Time for action - creating the search form
Time for action - adding code to perform a search query
Time for action - adding code to filter the results
Time for action - showing search form prefilled with last submitted data
Summary
Chapter 6: Property Search
The application
Time for action - creating the MySQL database and structure
Time for action - populating the database
Time for action - setting up the application
Time for action - creating the form to add property
Time for action - creating the index
Time for action - creating the simple search form
Time for action - adding code to perform full-text search
Time for action - creating the Advanced search form
Time for action - adding ranged filters
Time for action - creating the search form
Time for action - adding code to perform geo distance search
Summary
Chapter 7: Sphinx Configuration
Sphinx configuration file
Data source configuration
Time for action - creating a configuration with advanced source options
Index configuration
Time for action - creating indexes for distributed searching
Time for action - adding distributed index configuration
Time for action - using morphology for stemming
Search daemon configuration
Indexer configuration
Summary
Chapter 8: What Next?
SphinxQL
Time for action - querying Sphinx using MySQL CLI
Use case scenarios
Popular websites using Sphinx
Summary

What You Will Learn

  • Install Sphinx on your system
  • Create indexes in Sphinx by using Sphinx's indexer utility
  • Use the Sphinx API to issue search queries from your PHP applications
  • Filter your search results using different attributes
  • Create a functional application in PHP that will use the Sphinx search engine as the backend to serve search queries
  • Use PHP to create an application that fetches different feeds and stores the feed item data in a Sphinx index
  • Create an advanced search form that implements lots of filters, as well as a search form for geodistance searches
  • Explore the different configuration options available in the Sphinx configuration file that tailor Sphinx according to your needs

Authors

Table of Contents

Chapter 1: Setting Up Sphinx
What you need to know
Different ways of performing a search
Sphinx—a full-text search engine
Installation
Time for action - installation on Linux
Time for action - installation on Windows
Time for action - installation on a Mac
Summary
Chapter 2: Getting Started
Checking the installation
Full-text search
Time for action - normal search in MySQL
Overview of Sphinx
Time for action - Sphinx in action
Why use Sphinx for full-text searching?
Summary
Chapter 3: Indexing
What are indexes?
Index attributes
Data sources
Time for action - creating database tables for a blog
Time for action - populate the database tables
Time for action - creating the Sphinx configuration file
Time for action - adding attributes to the index
Time for action - Adding an MVA to the index
Time for action - creating index (without attributes)
Time for action - add attributes to schema
Time for action - create index with schema defined in configuration file
Summary
Chapter 4: Searching
Client API implementations for Sphinx
Search using client API
Time for action - creating a basic search script
Time for action - searching with different matching modes
Time for action - searching using Boolean query syntax
Time for action - searching with extended query syntax
Filtering full-text search results
Time for action - filtering the result set
Weighting search results
Time for action - weighting search results
Sorting modes
Grouping search results
Summary
Chapter 5: Feed Search
The application
Time for action - creating the MySQL database and tables
Time for action - setting up the feeds application
Time for action - creating a form to add feeds
Time for action - adding code to save feed
Time for action - create the index
Time for action - adding code to avoid duplicate items
Time for action - adding the delta index
Time for action - creating the search form
Time for action - adding code to perform a search query
Time for action - adding code to filter the results
Time for action - showing search form prefilled with last submitted data
Summary
Chapter 6: Property Search
The application
Time for action - creating the MySQL database and structure
Time for action - populating the database
Time for action - setting up the application
Time for action - creating the form to add property
Time for action - creating the index
Time for action - creating the simple search form
Time for action - adding code to perform full-text search
Time for action - creating the Advanced search form
Time for action - adding ranged filters
Time for action - creating the search form
Time for action - adding code to perform geo distance search
Summary
Chapter 7: Sphinx Configuration
Sphinx configuration file
Data source configuration
Time for action - creating a configuration with advanced source options
Index configuration
Time for action - creating indexes for distributed searching
Time for action - adding distributed index configuration
Time for action - using morphology for stemming
Search daemon configuration
Indexer configuration
Summary
Chapter 8: What Next?
SphinxQL
Time for action - querying Sphinx using MySQL CLI
Use case scenarios
Popular websites using Sphinx
Summary

Book Details

ISBN 139781849512541
Paperback244 pages
Read More
From 1 reviews

Read More Reviews

Recommended for You

WordPress Search Engine Optimization - Second Edition
$ 35.99
Job Interview Success for Introverts
$ 9.99
Windows Small Business Server SBS 2003: A Clear and Concise Administrator's Reference and How-To
$ 22.99