Download the PHP package alkhvalko/sphinxsearch-bundle without Composer

On this page you can find all versions of the php package alkhvalko/sphinxsearch-bundle. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package sphinxsearch-bundle

SphinxsearchBundle

With this bundle you can use Sphinx to search in your Symfony2 project.

Installation

Step 1: Download SphinxsearchBundle using composer

In your composer.json, add SphinxsearchBundle:

Now, you must update your vendors using this command :

Step 2: Add bundle in AppKernel.php

Step 3: Configure your config.yml

By default bundle does not need to be a configured, but has some options for you.

Full configuration :

Services

Maybe you want to use another class in @iakumai.sphinxsearch.search service. To do this put a full class name to the parameter named %iakumai.sphinxsearch.search.class%.

Maybe you want to use another class in @iakumai.sphinxsearch.doctrine.bridge service. To do this put a full class name to the parameter named %iakumai.sphinxsearch.doctrine.bridge.class%. It must implements a IAkumaI\SphinxsearchBundle\Doctrine\BridgeInterface

Exceptions

Highlight search results

You can highlight search words in templates by use sphinx_highlight filter.

For example:

In this example matches for "query word" in content variable will be highlighted for IndexName index. It use BuildExcerpts method for this.

Useful features

Sphinx search by date range

For example, search link looks like http://site.ru/search/?date-start=26.09.2013&date-end=27.09.2013

Examples

This code will use IndexName index to search for a query in q-get parameter:

You can use all methods, that provides by PHP SphinxAPI.

For example:

Now bundle can auto convert search results to entities if you will search for one index or define a index_name attribute in sphinx config. To to this, first configure index names, for example:

To convert multiple queries please add index_name attribute to your sphinx.conf file, for example:

Now you can execute searchEx() method:

$results_one now will contains something like this:

$results_two now will contains something like this:

Pagerfanta adapter

This bundle also includes special adapter for excellent Pagerfanta bundle


All versions of sphinxsearch-bundle with dependencies

PHP Build Version
Package Version
Requires php Version >=7.2
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package alkhvalko/sphinxsearch-bundle contains the following files

Loading the files please wait ....