Download the PHP package somardesignstudios/silverstripe-elastic-search without Composer

On this page you can find all versions of the php package somardesignstudios/silverstripe-elastic-search. 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 silverstripe-elastic-search

SilverStripe elastic search

Silverstripe module to provide site-wide content search with elasticsearch

Requirements

Installation

  1. Install the module

  2. Create log folder in the root of the project with permissions allowing write to the user running the site

Elastic connection configuration

Add your elasticsearch API keys to the .env file

Search configuration

Field mappings configuration

Page content will be flattened and stored in a standard set of fields defined in this module's search.yml

You can add additional fields by adding a search.yml config to your own project. e.g.

Search fields

You can change the default search fields and its weightings in config file, optionally you can define highlighting matches in matched fields:

Search page

On the Search page you will find a Vue component that is configurable via .yml files:

Search type

You can add additional configurations sets when multiple search pages with different configurations are needed. When an additional search type is defined, a dropdown will appear on the Search page. Configuration of additional search type is then merged with the default one.

Index creation

To create the index run /dev/tasks/Somar-Search-Task-CreateIndexTask. This task will create the index, set the mapping and create a pipeline for processing attachments.

When the index is created, use SearchIndexJob to index the site content (objects of class Page). You can add additional classes to index via .yml config:


All versions of silverstripe-elastic-search with dependencies

PHP Build Version
Package Version
Requires php Version >=8.2.0
elasticsearch/elasticsearch Version ^7.6
ramsey/uuid Version ^4.7
symbiote/silverstripe-queuedjobs Version ^4.0 || ^5.0
silverstripe/segment-field Version ^2.0 || ^3.0
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 somardesignstudios/silverstripe-elastic-search contains the following files

Loading the files please wait ....