Commit Graph

75 Commits

Author SHA1 Message Date
Magnus Bengtsson
ab8e316f5b Added php 7.2 support 2019-04-15 10:15:09 +12:00
BrewCurious
20e1b1cbc6 Adding extension hooks before and after Solr_Configure and Solr_Reindex tasks to allow (e.g. Translatable) to modify filters consistently across multiple task iterations 2017-11-14 15:50:56 +13:00
Robbie Averill
06269e8203 FIX Return a non-zero exit code when Solr_Configure has an exception 2017-08-04 11:49:12 +12:00
Eduard Briem
695280e91e adding ability to define different port for WebDAV than used for Solr (#126)
* adding ability to define different port for WebDAV than used for Solr

* removed spaces

* added Solr configuration example to documentation
2016-09-12 00:38:52 +01:00
John Milmine
9e51c1632c adding ability for solr suffix and prefixing
This means the same code can run on a single solr core and have the same indexes but use prefixes or suffixes to keep them separate
2016-07-20 06:40:52 +12:00
madmatt
e4914a6778 Remove X-Query, X-Filters, and X-QueryFields headers from being set in test environments 2016-07-18 14:46:10 +12:00
Darren Inwood
034171270f Add an extension hook to allow altering search results 2016-05-09 10:21:07 +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
Daniel Hensby
a94ddbce76 FIX Indexes with custom index names that dont match the classname were breaking 2016-02-23 02:05:00 +00:00
helpfulrobot
314feddd48 Converted to PSR-2 2015-11-21 19:19:20 +13: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
ddb0b2520a API Additional support for custom copy_fields
API Additional textSpellHtml type for html-safe spelling database generation
2015-07-06 17:49:06 +12:00
Damian Mooyman
94b5d7b85d Enable indexes to upload custom config
Robust parsing of collation suggestions
Support spelling suggestions
Include default optional dictionary for _spellcheckText column
2015-07-01 14:32:20 +12:00
Damian Mooyman
f2f16ae863 API Enable boosted fields to be specified on the index
API Enable configuration of default field
2015-06-30 15:13:49 +12:00
Damian Mooyman
1608d8384d Merge pull request #63 from chillu/pulls/fix-highlight-support
Fix highlight support when querying by fields (or boosting fields)
2015-06-03 10:11:31 +12:00
Ingo Schommer
1fc1a8f68c Fix class limit on delete query in SolrIndex 2015-05-07 20:44:21 +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
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
Stephen Shkardoon
064468a28a Add a no-op query to prevent database timeouts during a long reindex 2014-10-22 19:01:34 +13:00
Damian Mooyman
892562c2ba BUG Fix Solr 4.0 compatibility issue 2014-06-17 17:56:46 +12:00
Mateusz Uzdowski
403ed0a9c9 BUG Patch up the information leak of debug information. 2014-06-11 12:07:09 +12:00
Darren Inwood
a2cfbb531b BUG Fix sold indexing storing against the incorrect class key 2014-05-22 12:18:38 +12:00
Will Rossiter
aac63d4067 Pass verbose through to nested call.
Correct ID output
2014-03-19 12:14:56 +13:00
Will Rossiter
995a8a1d01 Remove config output 2014-01-17 09:28:50 +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
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
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
Hamish Friedlander
b6fe2ff17d Make how Solr_Configure uploads config replaceable
Solr_Configure takes the `indexstore.mode` configuration variable to set how
to upload new configuration to the Solr server. However the various modes
were within Solr_Configure and you couldnt add more without altering the module

This changes Solr_Configure to make the configuration upload portion
contained with a seperate class thats selected via `indexstore.mode`
to fix that.
2013-09-11 14:37:36 +12:00
Ingo Schommer
a7629c8bb2 BUG Remove non-displayable chars from Solr highlight results 2013-05-07 18:43:38 +02:00
Sean Harvey
6562ad2f2b Check for !empty() on includeSubclasses so you don't get an undefined notice 2013-02-18 16:42:32 +13:00
Sean Harvey
224844fd44 Casting the Excerpt field as HTMLText so we can format it in the template 2013-02-13 14:03:50 +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
cc144aa33e Merge branch 'pull/highlighting-support' of github.com:silverstripe-big-o/silverstripe-fulltextsearch into silverstripe-big-o-pull/highlighting-support 2013-02-13 10:36:20 +13:00
Sean Harvey
756e307562 Merge branch 'pull/custom-query-params' of github.com:silverstripe-big-o/silverstripe-fulltextsearch into silverstripe-big-o-pull/custom-query-params 2013-02-13 10:29:53 +13:00
Sean Harvey
428b8f3db5 fixing broken Solr_configure 2013-02-13 10:21:42 +13:00
Sean Harvey
75938c19a9 Ensure all cores are initialised on configure 2013-02-13 10:15:14 +13:00
Sean Harvey
deddbe5f15 Better checking for permissions when running Solr_configure 2013-02-13 09:59:14 +13:00
Sean Harvey
a6fd64eacd If no remote dir set for WebDAV, just use the index name by itself 2013-02-13 09:56:07 +13:00
Sean Harvey
4f58937636 Logging Solr communication exceptions as warnings
Before we didn't catch exceptions, the CMS would break when communication
errors with Solr occurred, this change will log those exceptions as warnings
so that creating new and publishing pages will continue gracefully.
2013-02-13 09:52:06 +13:00
Hamish Friedlander
b10c263784 Merge pull request #13 from silverstripe-big-o/pull/spell-checking
ENHANCEMENT Better spell checking default config and docs
2012-11-01 14:32:58 -07:00
Hamish Friedlander
94f271da7f Merge pull request #12 from silverstripe-big-o/pull/custom-source-paths
ENHANCEMENT Configurable source paths for Solr config
2012-11-01 14:31:51 -07:00
Hamish Friedlander
9ce4545bb9 Merge pull request #6 from silverstripe-big-o/ignore-empty-fields
Ignore empty fields
2012-11-01 14:27:31 -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