Commit Graph

49 Commits

Author SHA1 Message Date
Steve Boyd 302af21cad ENH PHP 8.1 compatibility 2022-04-13 11:24:03 +12:00
Steve Boyd b544d93121 FIX Ensure DB is active before processing 2022-03-23 14:31:55 +13:00
GuySartorelli 2c0e2df02d
FIX Don't assume DataObject::canView always returns bool (#306)
Because there is no return value typehinting in DataObject::canView, the value returned from that method can be of any type. We must cast to boolean before returning the value to avoid possible errors with non-boolean return types.
2022-01-27 11:23:19 +13:00
Steve Boyd a621f77380 FIX Allow deprecated warnings 2021-12-15 15:09:25 +13:00
GuySartorelli bd3ef84cb3
Make SearchQuery_Range injectable.
The docs in docs/en/04_querying.md#searching-value-ranges indicate that this class should be injectable.
2021-09-13 13:09:44 +12:00
Steve Boyd cfe937fbd1 NEW canView() check on record before indexing and before showing in search results 2020-06-10 17:22:20 +12:00
Michal Kleiner 167597db7b FIX #108 - Update and simplify getDirtyIDs method 2020-04-16 21:34:10 +12:00
Steve Boyd bfa2edee6a Improved search filtering based on visibility 2020-04-09 09:04:01 +12:00
Naomi Guyer d759a78182 FIX: allow update processor to be overriden by existing yml
One of the update commits (6066af5841) replaced SearchUpdateProcessor with SearchUpdateImmediateProcessor, but that means that the existing processor yml fails to replace the SearchUpdateImmediateProcessor with SearchUpdateQueuedJobProcessor  as I think is intended?

c.f https://github.com/silverstripe/silverstripe-fulltextsearch/blob/3/_config/processor.yml#L19
2020-02-10 17:05:16 +13:00
Naomi Guyer 1e2019ba4f Update SearchUpdateQueuedJobProcessor.php 2020-02-10 16:26:12 +13:00
Naomi Guyer 957037fc43
FIX: SearchUpdateQueuedJobProcessor JobType NULL
getJobType method returns null as querying a string rather than a namespaced class.
2020-02-10 16:20:29 +13:00
Robbie Averill 483fcbd513
Merge pull request #265 from scott1702/feature/subsite-extension
ENHANCEMENT Add extension point to appliesTo for SearchVariantSubsites
2019-08-05 16:58:47 +12:00
Scott Hutchinson 9c9b2a3e20 ENHANCEMENT Add extension point to appliesTo for SearchVariantSubsites 2019-08-05 16:44:56 +12:00
Maxime Rainville 566ffa0593 NEW Disable re-indexing when migrating files 2019-05-30 19:07:20 +12:00
Michal Kleiner fe5b8b7681
FIX #241 - Minor edits 2018-12-04 16:51:40 +13:00
Michal Kleiner ed2c135b38
FIX #241 - Support numerically indexed array of classes 2018-12-04 15:43:53 +13:00
Dylan Wagstaff f89818909a Merge branch '3.3' 2018-10-17 12:10:53 +13:00
Guy Marriott 393d50c858
FIX Removing last usage of depreacted method 2018-08-24 10:12:18 +12:00
Robbie Averill 1f156dfbb4
Merge pull request #150 from silverstripe-terraformers/feature/complex-filtering
Add nested filtering via Criteria and Criterion objects.
2018-08-22 12:00:03 +12:00
Robbie Averill f1f7b15569
FIX Add missing namespace import from alterQuery's PHPDoc block 2018-08-02 11:32:03 +12:00
cpenny 43f415555a Added complex filtering via Criteria/Criterion and Adapters/Writers for Solr. 2018-07-12 13:28:40 +12:00
Guy fb446b613f
FIX Reduce log level so errors do not automatically output 2018-06-28 09:56:26 +12:00
Robbie Averill acf204c1d0 Merge branch '3.2' into 3.3 2018-06-27 17:01:09 +12:00
Guy 97891b5fa3
Fixing linting issue that couldn't be automatically resolved 2018-06-27 16:54:08 +12:00
Guy 3e8b7f50a4
Automated linting commit 2018-06-27 16:50:54 +12:00
Andrew Aitken-Fincham 875b37ea63 use a template that iterates results properly 2018-06-08 14:11:33 +01: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 7a3e2d0823 NEW Allow autoconfigure to be disabled via configuration 2018-03-20 16:32:32 +13:00
Raissa North f47f43324c Update doc blocks at class level 2018-03-15 10:36:31 +13:00
Raissa North 08052436e8 DOCS Add doc blocks for ProxyDBExtension 2018-03-15 09:45:14 +13:00
Raissa North e7420a584d NEW Update to use proxied DB instead of self-proxied 2018-03-14 16:54:04 +13:00
Dylan Wagstaff 138fdad90c FIX Reenable indexing of relationship fields
In previous versions one could add e.g. a filter field for their index to
a relationship, such as 'Categories.ID' where categories is a many_many
relationship. This stopped working in the SS4 upgrade. Namespaces, whoop.
2018-03-13 13:34:14 +13:00
Dylan Wagstaff 48f3df725a
Merge pull request #202 from creative-commoners/pulls/3.0/irrelevant-variant-isolation
NEW Add SearchVariant::withCommon to run callbacks on relevant variants rather than all
2018-03-06 13:27:21 +13:00
Robbie Averill c64c0c05c7 Update doc block for withCommon to indicate an array of strings, shorten serialized cache key 2018-02-28 09:30:17 +13:00
Dylan Wagstaff 9e32f2adb0 FIX Don't assume a DataObject's table.
Knowing if a DataObject has a table or not is irrelevant - data is queried
out and pushed into solr all the same, whether there is a join table, a
base table, or any combination with maybe a few no-tables in between.
SomeDataClass::get() will fetch all data irrelevant of tables, that's the
point of an abstraction like SilverStripe's ORM.
2018-02-23 17:45:33 +13:00
Robbie Averill 6e5b37e728 NEW Add SearchVariant::withCommon to run callbacks on relevant variants rather than all 2018-02-23 16:42:00 +13:00
Robbie Averill 345a45d532 MINOR Correct PHPDoc types and remove unused imports 2018-01-10 19:57:19 +13:00
Robbie Averill a47d5e8a8e FIX Use correct namespace for SQLite3 adapter, implement injector prioritisation for database 2017-12-07 09:14:08 +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 fccac37621 FIX Ensure queued job signature remains under 64 character limit (fixes Postgres error) 2017-12-07 09:12:57 +13:00
Robbie Averill e47ab9c07d FIX Implement correct namespace for PostgreSQL and add to Travis matrix 2017-12-07 09:12:57 +13:00
Robbie Averill b64f02727c FIX Double escape namespace separators in class names when boosting fields 2017-12-05 16:49:55 +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
Raissa North b066628fcc FIX Replace uppercase String occurences with lowercase version ones 2017-12-05 10:52:24 +13:00
Raissa North 0c3b4ff95b ENHANCEMENT Use namespace imports rather than fully qualified class names in strings 2017-12-04 11:56:18 +13:00
Raissa North 193fe8139e API Make SearchVariant::call(...) arguments variadic 2017-11-30 12:01:57 +13:00
Raissa North acd8b7b164 FIX Update namespace references to Symbiote 2017-11-29 15:40:47 +13:00
Robbie Averill 7b72774890 FIX Update directory structure for PSR-4 compatibility and rename "code" to "src" 2017-11-29 15:13:46 +13:00