2017-03-30 12:17:46 +02:00
|
|
|
|
2011-05-02 06:33:05 +02:00
|
|
|
# FullTextSearch module
|
|
|
|
|
2017-02-06 20:58:21 +01:00
|
|
|
[![Build Status](https://secure.travis-ci.org/silverstripe/silverstripe-fulltextsearch.png?branch=master)](http://travis-ci.org/silverstripe/silverstripe-fulltextsearch)
|
2013-03-29 10:10:08 +01:00
|
|
|
|
2013-02-12 21:48:26 +01:00
|
|
|
Adds support for fulltext search engines like Sphinx and Solr to SilverStripe CMS.
|
2011-05-02 06:33:05 +02:00
|
|
|
|
|
|
|
## Maintainer Contact
|
|
|
|
|
|
|
|
* Hamish Friedlander <hamish (at) silverstripe (dot) com>
|
|
|
|
|
|
|
|
## Requirements
|
|
|
|
|
2013-04-03 04:33:03 +02:00
|
|
|
* SilverStripe 3.1+
|
2012-08-23 17:49:32 +02:00
|
|
|
* (optional) [silverstripe-phockito](https://github.com/hafriedlander/silverstripe-phockito) (for testing)
|
2011-05-02 06:33:05 +02:00
|
|
|
|
|
|
|
## Documentation
|
|
|
|
|
2013-02-12 23:02:04 +01:00
|
|
|
See docs/en/index.md
|
2011-05-02 06:33:05 +02:00
|
|
|
|
2015-11-19 04:55:50 +01:00
|
|
|
For details of updates, bugfixes, and features, please see the [changelog](CHANGELOG.md).
|
|
|
|
|
2011-05-02 06:33:05 +02:00
|
|
|
## TODO
|
|
|
|
|
2012-07-19 03:27:53 +02:00
|
|
|
* Get rid of includeSubclasses - isn't actually used in practice, makes the codebase uglier, and ClassHierarchy can be
|
2011-05-02 06:33:05 +02:00
|
|
|
used at query time for most of the same use cases
|
|
|
|
|
|
|
|
* Fix field referencing in queries. Should be able to do `$query->search('Text', 'Content')`, not
|
|
|
|
`$query->search('Text', 'SiteTree_Content')` like you have to do now
|
|
|
|
|
|
|
|
- Make sure that when field exists in multiple classes, searching against bare fields searches all of them
|
|
|
|
|
|
|
|
- Allow searching against specific instances too
|
|
|
|
|
|
|
|
* Make fields restrictable by class in an index - 'SiteTree#Content' to limit fields to a particular class,
|
|
|
|
maybe 'Content->Summary' to allow calling a specific method on the field object to get the text
|
|
|
|
|
|
|
|
* Allow following user relationships (Children.Foo for example)
|
|
|
|
|
|
|
|
* Be clearer about what happens with relationships to stateful objects (e.g. Parent.Foo where Parent is versioned)
|
|
|
|
|
|
|
|
* Improvements to SearchUpdater
|
|
|
|
|
|
|
|
- Make it work properly when in-between objects (the A in A.B.Foo) update
|
|
|
|
|
|
|
|
- Allow user logic to cause triggering reindex of documents when field is user generated
|
|
|
|
|
|
|
|
* Add sphinx connector
|
|
|
|
|
|
|
|
* Add generic APIs for spell correction, file text extraction and snippet generation
|
|
|
|
|
|
|
|
* Better docs
|