Skip to content

VadzimBelski-ScienceSoft/pimcore-plugin-SphinxSearch

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

87 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

SphinxSearch Plugin

This plugin is intended to interface the Sphinx full-text search engine with Pimcore.

It adds new configuration settings to object class definitions input fields to enable indexing and set weights, adds a weight attribute to document input field definition and provides a general settings panel to configure the search daemon and run the indexer manually.

It also provides classes and methods to query the index.

Get the plugin

You can find this plugin on github: https://github.com/ThomasKeil/pimcore-plugin-SphinxSearch

Installation

Download the plugin and copy it to plugins/SphinxSearch, e.g.
    cd plugins
    git clone https://github.com/ThomasKeil/pimcore-plugin-SphinxSearch.git SphinxSearch

For indexing to work correctly you need to run searchd, this can be done in the plugin's settings.

If this won't work for you please do it on the command line as the webserver's user, e.g.

su www-data - -c "searchd -c <path_to_your_htdocs>/website/var/plugins/SphinxSearch/sphinx.conf"

Usage

Submitting information to the index

For Objects, check the "Index" checkbox in the "Sphinx Settings" part of a classdefinition. Documents are indexed automatically.

New sphinx.conf is written if a document or classdefinition is changed.

Querying the index

    $result_array = SphinxSearch_SphinxSearch::queryObjects($query, $class_name);

    // Suitable for Iterators or Paginators:
    $object_list = new SphinxSearch_ObjectList($query, $class_name);

    $document_list = new SphinxSearch_DocumentList($query);

Contact the author

This plugin is developed by Weblizards - Custom Internet Solutions. You can contact the author at thomas@weblizards.de

About

A plugin for Pimcore to integrate the Open Source Search Server Sphinx

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • PHP 76.7%
  • JavaScript 23.2%
  • CSS 0.1%