Go to file
Elliot Sawyer 2246fa9ab8 Obtain search results for a particular subsite when the request comes from a query (#136)
* Allow a user to obtain search results for a particular subsite when the request comes from a query

When attempting to do this in project code, SearchVariantSubsites kicks in and replaces any filter you've applied with the current subsite ID, which prevents you from searching for filtered results in another subsite.

This fix prevents the module from doing this if a filter is applied on the query

TODO  write unit tests for the filter() and exclude() behaviours
2017-03-30 11:17:46 +01:00
_config API QueuedJob support for Solr_Reindex 2015-07-28 12:46:23 +12:00
code Obtain search results for a particular subsite when the request comes from a query (#136) 2017-03-30 11:17:46 +01:00
conf/solr Remove Porter Stemming from default template as it is breaking synonyms on search. 2016-09-22 09:52:23 +12:00
docs/en Merge branch 'chillu/pulls/dataobject-index' 2016-10-04 11:59:46 +01:00
tests Obtain search results for a particular subsite when the request comes from a query (#136) 2017-03-30 11:17:46 +01:00
thirdparty API Move local solr to own repo 2013-11-08 16:28:51 +13:00
_config.php API QueuedJob support for Solr_Reindex 2015-07-28 12:46:23 +12:00
.editorconfig Added standard editor config 2015-11-19 13:25:25 +13:00
.gitattributes Added standard git attributes 2015-11-19 19:11:54 +13:00
.scrutinizer.yml Added standard Scrutinizer config 2015-11-18 15:14:01 +13:00
.travis.yml BUG fix issues with search variants applying to more than one class 2016-04-26 12:43:31 +12:00
changelog.md Update changelog for 2.2.0 2016-05-18 17:20:00 +12:00
code-of-conduct.md Added standard code of conduct 2015-11-21 20:13:42 +13:00
composer.json Merge branch '2.3' 2016-12-14 13:31:38 +00:00
license.md Updated license year 2016-01-01 06:45:22 +13:00
README.md Obtain search results for a particular subsite when the request comes from a query (#136) 2017-03-30 11:17:46 +01:00

FullTextSearch module

Build Status

Adds support for fulltext search engines like Sphinx and Solr to SilverStripe CMS.

Maintainer Contact

  • Hamish Friedlander <hamish (at) silverstripe (dot) com>

Requirements

Documentation

See docs/en/index.md

For details of updates, bugfixes, and features, please see the changelog.

TODO

  • Get rid of includeSubclasses - isn't actually used in practice, makes the codebase uglier, and ClassHierarchy can be 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