Commit Graph

8 Commits

Author SHA1 Message Date
Steve Boyd
752803148d API phpunit 9 support 2021-11-02 14:48:12 +13: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
Robbie Averill
6ecf8439af FIX Update setUpBeforeClass and illegal_extensions 2017-12-07 09:14:09 +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
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
e590132967 FIX Run phpcbf automated linting to fix PSR-2 code styles, add PSR-4 autoloader 2017-11-15 09:53:33 +13: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
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