Download the PHP package silverstripe/solr without Composer

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

Solr Search Module

A module that extends the base functionality of the extensible search module, adding the ability to index and search content from a Solr instance.

Version Information

Requirements

Extensible Search Upgrade Notes

If you have recently been using the solr search module prior to the extensible search upgrade, the following steps will need to be taken.

Quick Usage Overview

Install Solr (packages available for most OSes)

For demonstration and testing purposes, a standalone Jetty based installation of solr is available in the solr/ subdirectory. To execute, simply change to that directory and run java -jar start.jar - the default settings will be fine for evaluation.

If you are running a custom Solr instance, make sure to copy the solr/solr/solr/collection1/conf/schema.xml file to your solr instance - there are a couple of custom types defined that SilverStripe uses; the XML for these is below, if you want to place in your own schema.xml file.

If you have a configuration different to the default locahost:8983/solr configuration, you can configure things by calling

Add the extensions

The following YAML will need to be added when using the extensible search page, so the solr search engine appears.

Add the SolrIndexable extension to any SiteTree objects you want to search. Support for other data objects may work, though file indexing is not yet supported

By default, the solr indexer will index Title and Content fields. If you want other fields indexed too, add them to your $searchable_fields static variable in your class type.

There is also an optional set of extensions available if you wish to enable an additional SiteTree index based on user permissions (rather than filtering the search result's response).

This will require the Queued Jobs module to function, due to the recursive indexing when saving a page. https://github.com/silverstripe-australia/silverstripe-queuedjobs

Using facets

First, you need to tell the search page what you're going to be faceting on

then make sure that field (MetaKeywords) is included in the list of fields to index via the searchable_fields static.

*_ms represents a multivalue field. *_as represents a sortable field (which doesn't require tokenization).

Template options

To customise search results displayed, provide a SolrSearch_results.ss file in your theme's templates directory.

API

GitHub Wiki

Administration

If you have ADMIN privileges, you can start and stop the locally bundled jetty version of solr from within the CMS on the Solr admin section.

To set the java path (if different from /usr/bin/java), set

to the appropriate path

Troubleshooting

If you aren't getting any search results, first make sure Solr is running and has been indexed.

Maintainer Contact

Marcus Nyeholt

<marcus (at) silverstripe (dot) com (dot) au>

Licensing

Solr is licensed under the Apache License This module is licensed under the BSD license


All versions of solr with dependencies

PHP Build Version
Package Version
No informations.
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 silverstripe/solr contains the following files

Loading the files please wait ....