Commit Graph

172 Commits

Author SHA1 Message Date
Sebastiaan Janssen
9202550537 Remove unused usings 2020-10-22 14:25:57 +02:00
Shannon
22a7f94921 Merge branch 'temp_8879' of https://github.com/dawoe/Umbraco-CMS into v8/contrib
(cherry picked from commit 069529e9e2)
2020-10-22 13:52:45 +02:00
Shannon
a6101ce499 Merge branch 'dawoe-temp_8879' into v8/contrib
(cherry picked from commit 35bf59dee4)
2020-10-22 13:52:10 +02:00
Shannon
664504833b Move scope management outside of iterator method 2020-08-31 23:57:26 +10:00
Shannon
6e08a0396e Umbraco to re-index data on background thread
Fixes issue with scopes being disposed or referenced incorrectly due to yield returns as this can capture a scope in the enumerator which will get passed to a background thread in Examine and cause some issues. We saw this issue in netcore but the issue must still exist in v8 but we don't visibly see it for some reason. The other issue is that the ValueSet lookup for content was done 3x when an IContent is saved and it should only be done 2x, one for published, one for unpublished. The other issue is that the data lookups to build a ValueSet are intended to be done on a background thread. This is the case in v7 because the IEnumerable is lazy and passed all the way down to Examine's background thread but this doesn't occur in v8 because we need to iterate/split that value set before it's sent to Examine so the ValueSet is eagerly built within the request. We can easily resolve this by using the background task manager and just pushing a task when IContent/IMedia/IMember is saved. This will return the execution to the UI quicker.
2020-08-31 23:41:19 +10:00
Shannon
191060f930 Merge branch 'v8/8.6' into v8/bugfix/sqlmaindom-updates 2020-07-09 16:33:44 +10:00
Shannon
0196e55c19 Cherry picks fix #7994 for #5151 2020-07-09 16:33:01 +10:00
Shannon
a233264c8e Ensure index rebuilding doesn't short circuit if one of the populators fails 2020-07-08 13:43:20 +10:00
Shannon
b8d6ef64c7 Remove the usage of Parallel to run the populators
(cherry picked from commit b078f856b9)
2020-07-02 13:49:59 +02:00
Shannon
6f420b9577 Merge branch 'v8/bugfix/contentquery-search' of https://github.com/ronaldbarendse/Umbraco-CMS into ronaldbarendse-v8/bugfix/contentquery-search 2020-01-15 12:18:52 +11:00
abi
71cfbcc787 MediaIndexPopulator should use IUmbracoContentIndex instead of UmbracoContentIndex 2019-11-29 15:13:11 +00:00
Ronald Barendse
b9e749152f Merge branch 'v8/dev' into v8/bugfix/contentquery-search 2019-11-15 09:49:50 +01:00
Bjarke Berg
7c72fb57f2 Merge remote-tracking branch 'origin/v8/8.3' into v8/dev
# Conflicts:
#	src/SolutionInfo.cs
#	src/Umbraco.Web.UI.Client/src/common/directives/components/editor/umbeditorheader.directive.js
#	src/Umbraco.Web.UI/Umbraco/config/lang/en_us.xml
#	src/Umbraco.Web/Cache/LanguageCacheRefresher.cs
2019-11-14 13:40:32 +01:00
Ronald Barendse
634f648517 Require Examine 1.0.2 2019-11-14 09:20:18 +01:00
Jeavon
88f6ddeae4 Code tweaks from PR review - also led to adding logging for Deserialization issues and therefore needing to mock the logger for the tests 2019-11-13 12:07:11 +00:00
Jeavon
10622cc430 Switched to using a dummy Uri so that runtimeState isn't needed as per review 2019-11-12 10:26:25 +00:00
Jeavon
b30f7b6a48 Merge branch 'v8/dev' into v8/feature/search-media-files 2019-11-12 10:12:03 +00:00
Bjarke Berg
7eef6b4037 https://github.com/umbraco/Umbraco-CMS/issues/7125 - Updates the projects to use the same versions as required by our nuspec 2019-11-12 08:50:31 +01:00
Shannon Deminick
1dc3a023c4 Merge pull request #6824 from bielu/v8/feature/InterfaceForContentPopulators
Create Interface for Member and Content Index to use in Populators
2019-10-31 14:16:41 +11:00
Ronald Barendse
7f0a077f58 Add SecurityCodeScan static code analyzer (#6636)
* Added SecurityCodeScan to all projects

* Enable analysing of content items
2019-10-29 19:37:15 +01:00
Jeavon
04004876b1 Merge branch 'v8/dev' into v8/feature/search-media-files 2019-10-29 12:13:09 +00:00
arkadiuszbiel
ffaf12c548 Create Interface for Member and Content Index to use in Populators 2019-10-24 09:55:41 +01:00
Shannon Deminick
1a593a8ef4 Merge pull request #6582 from bielu/feature/split_indexcreator_and_config
V8: Split IndexCreator and Index config methods
2019-10-14 15:55:11 +11:00
Harmen Kooiker
79e6c106d3 Fix ContetIndexPopulator publishedQuery 2019-10-11 09:38:43 +02:00
arkadiuszbiel
511751d147 refactor based on shannon comments 2019-10-10 15:50:00 +02:00
Jeavon
61465ed997 Add null check to umbracoFilePath and used Yield extension method 2019-10-04 18:30:35 +01:00
Jeavon
7130c99810 Rename new field and ensure Id is also searchable 2019-10-04 17:44:26 +01:00
arkadiuszbiel
c0fa66799f Split config and index creator to allow to override only config not whole index creator 2019-10-04 16:41:29 +02:00
Jeavon
68866e9faf Adding a constant for the new field name 2019-10-04 11:17:36 +01:00
Jeavon
e4df2f4205 Add ability for editors to search for media items by file name as well as node name. 2019-10-03 17:46:18 +01:00
Shannon
f60b91110f Fixes merge 2019-08-14 10:56:08 +10:00
Shannon
db6714d3b8 Merge remote-tracking branch 'origin/v8/8.1' into v8/dev
# Conflicts:
#	src/SolutionInfo.cs
#	src/Umbraco.Web/Search/ExamineComponent.cs
2019-08-14 10:39:15 +10:00
Shannon
be4536cf16 Refactors ugly statics and nested classes 2019-08-05 17:14:29 +10:00
Shannon
345e6091d2 fixes null check, was on the wrong element 2019-08-02 13:01:02 +10:00
Shannon
86a97c30d1 fixes up LuceneIndexDiagnostics 2019-08-02 12:40:45 +10:00
Shannon
14915e9da7 oops 2019-08-02 01:16:37 +10:00
Shannon
366058581a Adds LuceneIndexDiagnostics to make it easier for devs and custom indexes 2019-08-02 01:15:08 +10:00
Shannon
4612c03657 Fixes #5789 - PublishedContentQuery Search always searches on culture 2019-07-29 15:43:03 +10:00
Shannon
41093e5b8b Value Set builder shouldn't stop indexing when one field is empty in value sets 2019-07-29 15:38:08 +10:00
arkadiuszbiel
4a24064783 Value Set builder shouldn't stop indexing when one field is empty in value sets 2019-07-27 20:41:15 +01:00
Shannon
a8ed7f2c17 adds new method 2019-07-23 22:11:02 +10:00
Shannon
a4749f201d Ensures luceneIndexer.WaitForIndexQueueOnShutdown is called even when not in MainDom 2019-07-08 23:03:20 +10:00
Warren Buckley
b64f303537 Mark the release PDB as portable too - the Powershell build uses Release not Debug 2019-07-01 11:20:07 +01:00
Warren Buckley
f01be09075 Update sourcelink & set from full to portable 2019-07-01 10:13:31 +01:00
Warren Buckley
003ee1a991 Added in Microsoft.SourceLink.GitHub Nuget package 2019-06-23 19:57:43 +01:00
Shannon
790da9d5ca Adds todo note 2019-03-07 17:23:00 +11:00
Shannon
e1c22ef02c bumped to examine 1.0.0 2019-02-19 00:17:23 +11:00
Shannon
59f437ebf8 update to latest examine 2019-02-12 02:03:21 +11:00
Claus
7c3b5d1086 Merge remote-tracking branch 'origin/temp8-update-deps' into temp8 2019-02-07 13:40:17 +01:00
Shannon
ed5023e431 Adds some null checks to Examine's value set builders in case some of the data is strangely incorrect 2019-02-07 15:13:45 +11:00