Commit Graph

46 Commits

Author SHA1 Message Date
Daniel Hensby
465c072a99
FIX Regression where pages would be indexed under all subsites 2016-12-09 12:02:11 +00:00
UndefinedOffset
0ca7906c2d BUGFIX: Fixed crash when the relationship has no parents 2016-05-24 16:34:00 -03:00
Sam Minnee
b25ec97979 FIX: Fix initial dev/build on PDO Database.
When the database isn’t yet created, $current is set, but
$current->currentDatabase() is empty. I suspect this only applies to 
PDO connections. It results in errors during startup.

This check fixes it.
2016-04-29 14:23:11 +12:00
Damian Mooyman
e5fbdf9d42 BUG fix issues with search variants applying to more than one class 2016-04-26 12:43:31 +12:00
UndefinedOffset
5571e99506 BUGFIX: Fixed issue where the $id variable would be overridden in subsequent iterations of the derived fields loop 2016-04-18 09:40:43 -03:00
Damian Mooyman
ec5e4f4581 BUG Fix versioned writes where subtables have no fields key
BUG Remove unnecessary config nesting in tests which are now handled via core
Fixes some regressions in recent framework fixes to versioned
2016-04-15 15:46:19 +12:00
helpfulrobot
f87690ef22 Converted to PSR-2 2015-12-18 07:16:09 +13:00
torleif
84a79995d9 FIX: remove parameters from function calls 2015-12-03 14:49:26 +13:00
helpfulrobot
314feddd48 Converted to PSR-2 2015-11-21 19:19:20 +13:00
Christopher Pitt
3ad9369b0a 3.2 compat 2015-08-28 08:43:03 +12:00
Damian Mooyman
1683f776bd API QueuedJob support for Solr_Reindex
API Incremental clear and re-index of records rather than clearing all records from SolrIndex up front
2015-07-28 12:46:23 +12:00
Damian Mooyman
16a6f362e2 API Only allow one scheduled commit job at a time 2015-05-11 16:35:43 +12:00
Damian Mooyman
60b05db1ce API Separate searchupdate / commit into separate queued-jobs
API Enable indexes to deprecate other classes
API Enable indexes to be globally specified in config
2015-05-08 15:22:46 +12:00
Ingo Schommer
9d079724a3 Regression in SearchUpdater_ObjectHandler
Stopped indexing of classes which were unrelated to overall variants.
For example, an index with excludeVariantState(array('SearchVariantVersioned' => 'Stage'))
should only set this variant state on types where appliesTo() returns true, namely "Page".
Without the $class parameter it also returned on "File" index requests,
which then lead to all index requests being discarded later on somewhere in SearchUpdater.

Regression introduced in 625d282.
2015-05-07 21:57:35 +12:00
Damian Mooyman
625d282df2 API Solr_Reindex uses configured SearchUpdater instead of always doing a direct write
Emit errors on Solr_Reindex if verbose=1
2015-05-07 11:58:39 +12:00
Daniel Pickering
6ab5969ac1 Fix many_many fieldData bug
This fixes a critical bug meaning that using many_many fields in full text searching would have always failed.

the $singleton->many_many() lookup returns an array() of many-many components, however the line $class = $manyMany[0] is wrong, as the first value of the array is always the $dataClass (parentClass), not the otherClass (childClass).

Changing this to $class = $manyMany[1] fixes this bug.
2014-08-21 16:58:59 +12:00
Damian Mooyman
9efe4baa16 API SearchUpdateQueuedJobProcessor now uses batching 2014-08-21 16:19:51 +12:00
torleif
fa0dcb7078 FIX: will work for postgreSQL
subsites will fail with this module if running on PostgrSQL
2014-08-19 10:29:01 +12:00
Damian Mooyman
23a1ba6e1a BUG Fix subsite document ID generation 2014-05-22 16:48:37 +12:00
Darren Inwood
a2cfbb531b BUG Fix sold indexing storing against the incorrect class key 2014-05-22 12:18:38 +12:00
Stig Lindqvist
7dd8d888cf Merge pull request #30 from hafriedlander/fix/subsitesvariant
FIX subsites not activating after recent subsite session changes
2013-09-16 20:33:42 -07:00
Hamish Friedlander
b75e243276 FIX subsites not activating after recent subsite session changes 2013-09-17 14:59:48 +12:00
Hamish Friedlander
03a206109a Make tests run 2013-09-11 14:35:01 +12:00
Hamish Friedlander
dbd68dc300 API Move SearchUpdate queue handling to DIed processor, add QueuedJob support 2013-07-25 14:28:10 +12:00
Hamish Friedlander
b2098a3ebf FIX Throw error if trying to add a table-less DataObject class to index
Its impossible for SearchUpdater#handle_manipulation to figure out the difference
between writing to a table-less class (like Page if theres no $db set) and the
table-having parent (like SiteTree) because it only examines the DB manipulation

This meant if you tried to index Page without setting $db fields, only subclasses
that did have $db fields would be indexed

We cant fix, but we can throw an error if you try to do that
2013-05-03 09:23:21 +12:00
Sean Harvey
f9998a2266 Use the correct class name instead of $databaseConfig['type'] 2013-04-12 16:31:10 +12:00
Sean Harvey
801aa48d07 Fixing SS 3.1 support. Changing minimum requirement to 3.1 as a result. 2013-04-03 15:43:08 +13:00
Sean Harvey
7a9a698c2d Merge branch 'docs' of github.com:silverstripe-big-o/silverstripe-fulltextsearch into silverstripe-big-o-docs 2013-02-13 10:43:05 +13:00
Sean Harvey
3508aadf56 Merge branch 'pull/field-defs-analyzers' of github.com:silverstripe-big-o/silverstripe-fulltextsearch into silverstripe-big-o-pull/field-defs-analyzers 2013-02-13 10:40:08 +13:00
Sean Harvey
7f2e9a4e72 NEW Add variant for regular subsite module. 2013-02-13 10:16:39 +13:00
Hamish Friedlander
5036f9e93c Merge pull request #14 from silverstripe-big-o/pull/instance-of-sslist
BUG Check for instanceof SS_List rather than deprecated DataObjectSet
2012-11-01 14:33:28 -07:00
Hamish Friedlander
e98b9e229f Merge pull request #5 from silverstripe-big-o/excludevariantstate
NEW SearchIndex->excludeVariantState()
2012-11-01 14:23:59 -07:00
Ingo Schommer
b6fd7b7b89 ENHANCEMENT Extra field definition options for SolrIndex 2012-10-05 12:40:43 +02:00
Ingo Schommer
0f557915e1 BUG Check for instanceof SS_List rather than deprecated DataObjectSet 2012-09-05 22:08:06 +02:00
Ingo Schommer
29b17a860a Documentation 2012-08-29 21:57:45 +02:00
Ingo Schommer
50304e4b0c NEW SearchIndex->excludeVariantState() 2012-08-28 23:34:51 +02:00
Ingo Schommer
989cc36766 NEW Added search-time boost support to SolrIndex 2012-08-23 18:30:46 +02:00
Hamish Friedlander
e5bf1473d6 BUG Make process_dirty_indexes act cleanly
process_dirty_indexes wasnt saving variant state or restoring or exit, because
I thought it was only called at the end of a request and so didnt need to

But tests call it regularly throughout a request. So now its clean
and safe to call when-ever
2012-07-19 17:07:48 +12:00
Hamish Friedlander
f4fd71665a BUG New capture method wouldnt carry test db name through to clone in tests 2012-07-19 14:14:12 +12:00
Hamish Friedlander
b2152b4c5e FIX Dont error out if bind_manipulation_capture called to early 2012-07-19 13:50:10 +12:00
Hamish Friedlander
38c88094b9 FIX Use addInnerJoin instead of innerJoin to fix deprec error 2012-07-19 13:41:05 +12:00
Hamish Friedlander
590e7bef5d Make the default update_method be AUTO 2012-07-19 13:41:05 +12:00
Hamish Friedlander
b9c6ff44ec BUG Dont try and load SearchVariants that dont apply to this env 2012-07-19 13:41:05 +12:00
Hamish Friedlander
9534eeff8a BUGFIX: Fixed deprecation errors for ClassInfo::is_subclass_of 2012-07-19 13:41:05 +12:00
Hamish Friedlander
1ee50dd9ab BUG make bind_manipulation_capture call correctly
When the module was called solr we could call SearchUpdater::bind_manipulation_capture in _config.php, because
solr/_config.php was included after mysite/_config.php. This isnt true when the module is called fulltextsearch

Instead we hook into the new RequestProcessor in 3.0 to make the manipulation capture. We also make
bind_manipulation_capture re-callable, so you can call it any time you need to make sure.
2012-07-19 12:09:44 +12:00
Hamish Friedlander
17be5a3e63 Import first version of fulltextsearch module 2011-05-02 16:33:05 +12:00