Commit Graph

243 Commits

Author SHA1 Message Date
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
Damian Mooyman
741aab1208 Merge pull request #69 from chillu/pulls/current-state-regression
Regression in SearchUpdater_ObjectHandler
2015-05-08 08:53:39 +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
Ingo Schommer
1fc1a8f68c Fix class limit on delete query in SolrIndex 2015-05-07 20:44:21 +12:00
Hamish Friedlander
27270d0528 Merge pull request #65 from tractorcow/pulls/fix-updater
API Solr_Reindex uses configured SearchUpdater instead of always doing a direct write
2015-05-07 14:19:07 +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
Ingo Schommer
66a2353d33 Newline after class index log 2015-05-05 23:41:59 +12:00
Ingo Schommer
50f53e7bac Fix highlight support when querying by fields (or boosting fields)
Highlighting will simply be empty otherwise, presumably
because it can't match against the complex query term in the "q" parameter.
2015-05-05 19:44:07 +12:00
Ingo Schommer
6321c5310f Docs on index triggers, queues and timeouts 2015-05-04 17:40:44 +12:00
Ingo Schommer
ff62c2b930 Merge pull request #61 from tractorcow/pulls/master/storedfields
BUG Add missing addStoredFields method
2015-02-21 09:40:56 +13:00
Damian Mooyman
620d7861b6 BUG Add missing addStoredFields method 2015-02-17 10:17:58 +13:00
Ingo Schommer
79eb663638 Merge pull request #58 from silverstripe-iterators/pulls/spelling-suggestions
Make spelling suggestions more useful
2015-01-06 16:47:14 +13:00
☃ Stephen Shkardoon ☃
cb1770864d Merge pull request #49 from tractorcow/pulls/solr-4-compat
BUG Fix Solr 4.0 compatibility issue
2014-11-17 16:50:12 +13:00
David Craig
201388adb4 Make spelling suggestions more useful 2014-11-14 14:02:50 +13:00
Damian Mooyman
0d22bf7a36 Merge pull request #57 from ss23/more_sql_pls
Add a no-op query to prevent database timeouts during a long reindex
2014-10-24 16:15:00 +13:00
Stephen Shkardoon
064468a28a Add a no-op query to prevent database timeouts during a long reindex 2014-10-22 19:01:34 +13:00
Sean Harvey
2ba90f4239 Merge pull request #50 from tractorcow/pulls/phockito-failover
BUG Fix test case not elegantly failing on missing phockito
2014-08-21 17:22:23 +12:00
Sean Harvey
e22d6053e5 Adding tests for SearchIndex::fieldData() 2014-08-21 16:58:59 +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
Sean Harvey
5b19ebf7b3 Merge pull request #45 from tractorcow/pulls/queued-batch
API SearchUpdateQueuedJobProcessor now uses batching
2014-08-21 16:25:36 +12:00
Damian Mooyman
9efe4baa16 API SearchUpdateQueuedJobProcessor now uses batching 2014-08-21 16:19:51 +12:00
Damian Mooyman
05c500b020 Merge pull request #54 from torleif/patch-1
FIX: will work for postgreSQL
2014-08-19 16:35:59 +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
790afb211a BUG Fix test case not elegantly failing on missing phockito 2014-06-18 11:04:18 +12:00
Damian Mooyman
892562c2ba BUG Fix Solr 4.0 compatibility issue 2014-06-17 17:56:46 +12:00
Damian Mooyman
9629f0e0f5 Merge pull request #47 from mateusz/info-leak
Info leak
2014-06-11 12:18:29 +12:00
Mateusz Uzdowski
403ed0a9c9 BUG Patch up the information leak of debug information. 2014-06-11 12:07:09 +12:00
Mateusz U
12308ed1de Merge pull request #44 from tractorcow/pulls/subsites-docid
BUG Fix subsite document ID generation
2014-05-22 17:37:10 +12:00
Damian Mooyman
23a1ba6e1a BUG Fix subsite document ID generation 2014-05-22 16:48:37 +12:00
Hamish Friedlander
c39c4b4983 Merge pull request #39 from tractorcow/pulls/trigger-deletes
BUG Fix old indexing storing against the incorrect class key
2014-05-22 13:52:20 +12:00
Darren Inwood
a2cfbb531b BUG Fix sold indexing storing against the incorrect class key 2014-05-22 12:18:38 +12:00
Mateusz U
1785268744 Merge pull request #40 from tractorcow/pulls/dev-indexing
API Disable queued processing for development environments
2014-05-13 11:11:07 +12:00
Damian Mooyman
71fc359b37 API Disable queued processing for development environments 2014-04-16 17:50:57 +12:00
Will Rossiter
aac63d4067 Pass verbose through to nested call.
Correct ID output
2014-03-19 12:14:56 +13:00
Sam Minnee
4b51393e01 Don't rely on MySQL ordering of index->getAdded()
MySQL is more reliable in its output ordering of elements where the order doesn't matter.
PostgreSQL is not.  This meant that this test "accidentally passed" on MySQL and failed on
PostgreSQL.  The sort function resolves this.
2014-02-14 11:32:24 +13:00
Will Rossiter
995a8a1d01 Remove config output 2014-01-17 09:28:50 +13:00
Will Rossiter
f2b7963c82 Include default lookup for custom libs in ./lib 2014-01-16 13:54:40 +13:00
Will Rossiter
51876f30d3 Export options to configure view to make it easier to determine final configuration. 2014-01-15 12:45:14 +13:00
Will Rossiter
06a7941613 FIX: Use index name as Solr reference rather than class name.
As otherwise SS_SOLR_INDEXNAME_SUFFIX is ignored when adding documents
2014-01-15 12:44:33 +13:00
Will Rossiter
71cf877204 Merge pull request #37 from unclecheese/patch-1
Update broken tutorial link
2013-11-20 22:53:12 -08:00
unclecheese
c1e500c8c2 MINOR: Update broken tutorial link 2013-11-21 09:31:53 +13:00
Mateusz U
fdfd8b3875 Merge pull request #36 from hafriedlander/remove_local_solr_server
API Move local solr to own repo
2013-11-07 19:32:58 -08:00
Hamish Friedlander
799c8760af API Move local solr to own repo
The local solr server was very out of date (because changing it would be an API change)
and took up lots of space in the repository.

This commit removes it, and references a newly created package,
silverstripe/fulltextsearch-localsolr

Not only does this save on storage space when the example server
isnt needed (you shouldnt really be using it for production), it
also disconnects the server version from the module version, so
you can easily change one without changing the other
2013-11-08 16:28:51 +13:00
Mateusz U
efdc96e937 Merge pull request #35 from hafriedlander/solr4
API Add support for Solr 4 and make it the default
2013-11-07 19:04:02 -08:00
Hamish Friedlander
3d18903552 API Add support for Solr 4 and make it the default
Solr::configure_server now takes "version" as one of the keys in the
option array, and behaves slightly differently depending on whether
that version is 3 or 4, to provide support for both Solr versions.

The Solr extras and templates have also moved, so that different
versions can be provided for the two different Solr versions.
2013-11-08 15:03:47 +13:00
Will Rossiter
15daed3edc Merge pull request #32 from ajshort/pull-1
BUG: Ensure excerpts are returned as HTMLText instances.
2013-10-08 01:29:01 -07:00
Andrew Short
3dfbfdb8ef BUG: Ensure excerpts are returned as HTMLText instances.
a7629c8bb2 inadvertently made it so
they were returned as plain strings due to the replace operation.
2013-10-08 18:56:07 +11:00
Sean Harvey
915219b6c4 BUG Fixing fuzzy not being applied to standard keyword searches.
At the moment it only applies fuzzy to specific field searches, but not when you haven't specified any fields.
2013-09-27 10:45:22 +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