From 815c5b6fc3802b067c9667feb40ceab1d692227c Mon Sep 17 00:00:00 2001 From: Aaron Sadler Date: Fri, 16 Oct 2020 22:54:36 +0100 Subject: [PATCH 1/2] Added additional versions (Uno + Heartcore) --- OurUmbraco/Our/Examine/OurSearcher.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/OurUmbraco/Our/Examine/OurSearcher.cs b/OurUmbraco/Our/Examine/OurSearcher.cs index 4618e7f3f3..f58385586a 100644 --- a/OurUmbraco/Our/Examine/OurSearcher.cs +++ b/OurUmbraco/Our/Examine/OurSearcher.cs @@ -1,4 +1,4 @@ -using System; +using System; using System.Collections; using System.Collections.Generic; using System.Diagnostics; @@ -66,7 +66,7 @@ private ISearchCriteria GetSearchCriteria(BaseLuceneSearcher searcher) // * docs version (MajorDocsVersion) supplied, give current version and NEGATE OTHERS // * no docs version (MajorDocsVersion) is not suplied, use it and NEGATE others // * all versions are requests, this is currently not implemented - var currentMajorVersions = new string[] { "6", "7", "8" }; + var currentMajorVersions = new string[] { "4", "6", "7", "8", Constants.Forum.UnoVersionNumber.ToString(), Constants.Forum.UnoVersionNumber.ToString() }; // add mandatory majorVersion is parameter is supplied string versionToFilterBy = MajorDocsVersion == null From 30375a18e19481cf669d345d7c9e89e4ecde2c9f Mon Sep 17 00:00:00 2001 From: Aaron Sadler Date: Fri, 16 Oct 2020 22:55:00 +0100 Subject: [PATCH 2/2] Added forum version field to search --- OurUmbraco/Our/Examine/OurSearcher.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/OurUmbraco/Our/Examine/OurSearcher.cs b/OurUmbraco/Our/Examine/OurSearcher.cs index f58385586a..719fb9dea5 100644 --- a/OurUmbraco/Our/Examine/OurSearcher.cs +++ b/OurUmbraco/Our/Examine/OurSearcher.cs @@ -1,4 +1,4 @@ -using System; +using System; using System.Collections; using System.Collections.Generic; using System.Diagnostics; @@ -80,6 +80,7 @@ private ISearchCriteria GetSearchCriteria(BaseLuceneSearcher searcher) foreach (var versionToNegate in versionsToNegate) { sb.AppendFormat("-majorVersion:{0} ", versionToNegate); + sb.AppendFormat("-version:{0} ", versionToNegate); } }