PHPackages                             dnadesign/silverstripe-fulltextsearchdefault - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Search &amp; Filtering](/categories/search)
4. /
5. dnadesign/silverstripe-fulltextsearchdefault

ActiveSilverstripe-module[Search &amp; Filtering](/categories/search)

dnadesign/silverstripe-fulltextsearchdefault
============================================

Basic implementation of a FulltextSeach index and search form in SilverStripe

2311PHP

Since Feb 17Pushed 10y ago14 watchersCompare

[ Source](https://github.com/dnadesign/silverstripe-fulltextsearchdefault)[ Packagist](https://packagist.org/packages/dnadesign/silverstripe-fulltextsearchdefault)[ RSS](/packages/dnadesign-silverstripe-fulltextsearchdefault/feed)WikiDiscussions master Synced 2mo ago

READMEChangelogDependenciesVersions (1)Used By (0)

FullTextSearchDefault module
============================

[](#fulltextsearchdefault-module)

Extends the [FullTextSearch](https://github.com/silverstripe-labs/silverstripe-fulltextsearch)module with a default configuration that provides a basic Solr configuration and search results page.

Since the FullTextSearch module is a work in progress and subject to change, this module should be considered alpha. In the near future, the FulltextSearch module may also provide this functionality out of the box.

Installation
------------

[](#installation)

To start using Solr, install this module along with the fulltextsearch module and run dev/build. After running the database rebuild, start the Solr server up.

The fulltextsearch module provides a basic server suitable for testing. To start that run:

```
cd fulltextsearch/thirdparty/solr/server/ && java -jar start.jar &

```

If Solr has started up and is running, we should first make sure the data directory exists (default: /data/solr) or configured by the SOLR\_BASE\_PATH value in your `_ss_environment.php` file.

```
mkdir /data/solr

```

Ensure that your web server can write to that folder. Then to populate that directory run the configure task:

```
sake dev/tasks/Solr_Configure

```

That will populate the `/data/solr/FulltextSearchDefaultIndex/conf` directory with the configuration files such as `schema.xml` and `solrconfig.xml`. More information about these files can be found in the [Solr Manual](http://lucene.apache.org/solr/)

For more information about the SilverStripe wrapper around Solr consult the fulltextsearch module directly.

Usage
-----

[](#usage)

This module will provide a new page type in the CMS called `FulltextSearchDefaultPage`along with a default index. More about customizing the index is below.

Both the page type and the index are designed to be starting points for developers to use to extend to make the most of their Solr service.

### Extending the built in indexes

[](#extending-the-built-in-indexes)

To index your own dataobjects, subclass the `FulltextSearchDefaultIndex` class and add your own types in.

```
:::php
