Commit Graph

87 Commits

Author SHA1 Message Date
Steve Boyd
bfa2edee6a Improved search filtering based on visibility 2020-04-09 09:04:01 +12:00
Maxime Rainville
566ffa0593 NEW Disable re-indexing when migrating files 2019-05-30 19:07:20 +12:00
cpenny
43f415555a Added complex filtering via Criteria/Criterion and Adapters/Writers for Solr. 2018-07-12 13:28:40 +12:00
Robbie Averill
acf204c1d0 Merge branch '3.2' into 3.3 2018-06-27 17:01:09 +12:00
Guy
3e8b7f50a4
Automated linting commit 2018-06-27 16:50:54 +12:00
Robbie Averill
fc36eac3b3 FIX Remove method clearing dummy data from test fixture methods, DB rollbacks do this already 2018-06-15 14:33:40 +12:00
Robbie Averill
2fdf87bbf1 FIX Remove resetDBSchema use, not required and breaking 4.2 tests
Also reduces tearDown to protected visiblity as it is in SapphireTest and optimises class imports
2018-06-15 14:07:30 +12:00
Andrew Aitken-Fincham
e2a68ccffe improve SearchQuery API readability by deprecating functions
deprecate filter, exclude, fuzzysearch, inClass

deprecate start, limit

deprecate page, update SearchQuery_Range

add _config.php with Deprecation versioning

update index.md method names

update solr.md method names
2018-05-18 10:15:20 +01:00
jovenden
c110eac8a1 Remove unneeded test as getClassNameFromIndex has been removed 2018-03-09 13:26:55 +13:00
jovenden
0fbff7ca6a Remove all further references to getClassNameFromIndex() 2018-03-09 09:42:33 +13:00
Robbie Averill
31991858ef FIX Update tests to reflect the fact that the versioned variant is not relevant for SearchUpdaterTest_Container 2018-02-23 16:42:35 +13:00
Robbie Averill
7b933cb36e API More TestState into source folder from tests 2018-01-10 15:16:04 +13:00
Robbie Averill
2ac0178958 Switch testSoftCap from skipped to incomplete 2017-12-07 09:14:09 +13:00
Robbie Averill
6ecf8439af FIX Update setUpBeforeClass and illegal_extensions 2017-12-07 09:14:09 +13:00
Robbie Averill
21a045165b Skip testSoftCap for now, passes in isolation but not in the suite. Use constants for queue statics 2017-12-07 09:12:57 +13:00
Robbie Averill
45c402fc4c API Remove bind_manipulation_capture and RequestFilter, use Injector instead 2017-12-07 09:12:57 +13:00
Robbie Averill
4d57f09230 NEW Replace backslashes in Solr index names with dashes 2017-12-06 10:17:24 +13:00
Robbie Averill
861f87514d API Update Subsite integration, remove Polyhome variant
Add a method to clear cached variants from SearchVariant, and a configuration flag for whether
a variant should be enabled or not. Add a FullTextSearch TestState class which will globally
disable the queuedjobs and fulltextsearch shutdown handlers during tests, and is not used to
clear cached variants on each test to prevent global state leakage.

Also removes Phockito as a test dependency.
2017-12-05 14:29:53 +13:00
Robbie Averill
6811082263 NEW Support environment variables for Solr index prefix and suffix 2017-11-30 10:40:25 +13:00
Robbie Averill
c7cbb0190d FIX Disable QueuedJobService shutdown function in fulltextsearch unit tests 2017-11-30 09:52:04 +13:00
Raissa North
6f8ef48a9b FIX Disabled the shutdown handler in QueuedJobs 2017-11-30 09:36:27 +13:00
Raissa North
acd8b7b164 FIX Update namespace references to Symbiote 2017-11-29 15:40:47 +13:00
Robbie Averill
fbc4c0e81d FIX Escape backslashes in class namespaces when performing queries, tidy up SearchVariantVersioned a bit 2017-11-16 13:59:15 +13:00
Robbie Averill
e590132967 FIX Run phpcbf automated linting to fix PSR-2 code styles, add PSR-4 autoloader 2017-11-15 09:53:33 +13:00
Robbie Averill
b448bfcd20 NEW Add config for shutdown flush, remove references to Object and update tests 2017-11-14 17:05:30 +13:00
Robbie Averill
0de6f52b1f Merge remote-tracking branch 'upstream/master' into compat4/btasker 2017-11-14 16:31:16 +13:00
Mojmir Fendek
16fc54e101
Index now supports multiple relations with the same name. 2017-06-21 13:13:33 +01:00
Ingo Schommer
b7f4c1e5f8
Test for ambiguous relationships
See https://github.com/silverstripe/silverstripe-fulltextsearch/pull/145
2017-06-21 13:09:31 +01:00
Brett Tasker
8adb3171f0 FIX: Update travis to remove php 5.5 + Fix SearchVariantSubsiteTest reference to SapphireTest 2017-05-01 20:46:19 +12:00
Brett Tasker
4c44d1c29e FIX: Broken merge as files have been moved + Fixed additional tests 2017-05-01 20:18:59 +12:00
Brett Tasker
c29e8ec6bf Merge branch 'master' into compat4/btasker 2017-04-27 00:27:16 +12:00
Brett Tasker
a8588b2fd8 Merge branch 'compat/4' into compat4/btasker 2017-04-27 00:24:46 +12:00
Brett Tasker
73e4888715 SS 4.0 - Upgrade tests to SilverStripe 4.0 & Replace Phockito 2017-04-26 22:53:00 +12:00
Marco Hermo
e422ad48c9 Use PHP5.5 class name resolution operator 2017-04-25 21:11:29 +12:00
Marco Hermo
8228c762c9 Explicit namespace definition on YAML files 2017-04-24 09:05:47 +12:00
Brett Tasker
168b6745b4 SS 4.0 - Skip Subsite tests if module is not installed 2017-04-22 21:36:40 +12:00
Brett Tasker
43dd2ba398 SS 4.0 - Replace inst()->update with modify()->set and hasOne with hasOneComponent 2017-04-22 21:31:34 +12:00
Brett Tasker
0b7281b25e SS 4.0 - Update references to thirdparty Solr API as its not namespaced 2017-04-22 21:30:02 +12:00
Brett Tasker
6066af5841 Update Search Manipulater 2017-04-21 16:34:04 +12:00
Brett Tasker
9d5ea9393d Batch fixes for tests #2 2017-04-21 14:14:30 +12:00
Brett Tasker
6a2a4a8dd2 Update namespacing for Search indexes and variants in tests 2017-04-21 13:32:39 +12:00
Brett Tasker
0ee34e49e2 Fix PHP errors in test 2017-04-21 13:26:07 +12:00
Brett Tasker
0ebf6e6220 Second push of Test changes + namespacing 2017-04-21 13:18:37 +12:00
Brett Tasker
ddbab95e3f Namespacing for tests 2017-04-21 12:23:27 +12:00
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
Daniel Hensby
9e5d432aa5
Merge branch 'pull/138' into 2.3 2017-03-09 10:47:21 +00:00
Damian Mooyman
bbaf4276af
BUG Fix delete / unpublish
Split SearchUpdater classes into separate files
Fixes #134
2017-03-09 12:34:20 +13:00
Daniel Hensby
50c9f52d58
Test coverage for SearchVariantSubsites@extractManipulationWriteState 2016-12-09 12:02:10 +00:00
UndefinedOffset
6ff50fede9 BUGFIX: SolrVersionedTest_Index causing crash in unit tests when Phockito is not installed 2016-06-16 11:50:21 -03:00
Damian Mooyman
e5fbdf9d42 BUG fix issues with search variants applying to more than one class 2016-04-26 12:43:31 +12:00