diff --git a/PX.Search.Abstractions/DefaultOperator.cs b/PX.Search.Abstractions/DefaultOperator.cs
deleted file mode 100644
index b4304a7..0000000
--- a/PX.Search.Abstractions/DefaultOperator.cs
+++ /dev/null
@@ -1,16 +0,0 @@
-using System;
-using System.Collections.Generic;
-using System.Linq;
-using System.Text;
-
-namespace Px.Search.Abstractions
-{
- ///
- /// The operator that will be used as default if more than one word is specified in a search query
- ///
- public enum DefaultOperator
- {
- OR,
- AND
- }
-}
diff --git a/PX.Search.Abstractions/IIndexer.cs b/PX.Search.Abstractions/IIndexer.cs
deleted file mode 100644
index effc9ef..0000000
--- a/PX.Search.Abstractions/IIndexer.cs
+++ /dev/null
@@ -1,13 +0,0 @@
-using PCAxis.Paxiom;
-using System;
-
-namespace Px.Search.Abstractions
-{
- public interface IIndexer : IDisposable
- {
- void Create(bool createIndex);
- void AddPaxiomDocument(string database, string id, string path, string table, string title, DateTime published, PXMeta meta);
- void UpdatePaxiomDocument(string database, string id, string path, string table, string title, DateTime published, PXMeta meta);
- void End();
- }
-}
diff --git a/PX.Search.Abstractions/IPxSearchProvider.cs b/PX.Search.Abstractions/IPxSearchProvider.cs
deleted file mode 100644
index 743c8a3..0000000
--- a/PX.Search.Abstractions/IPxSearchProvider.cs
+++ /dev/null
@@ -1,9 +0,0 @@
-namespace Px.Search.Abstractions
-{
- public interface IPxSearchProvider
- {
- ISearcher GetSearcher();
- IIndexer GetIndexer();
- }
-
-}
diff --git a/PX.Search.Abstractions/ISearcher.cs b/PX.Search.Abstractions/ISearcher.cs
deleted file mode 100644
index 00a4643..0000000
--- a/PX.Search.Abstractions/ISearcher.cs
+++ /dev/null
@@ -1,12 +0,0 @@
-using System;
-using System.Collections.Generic;
-
-namespace Px.Search.Abstractions
-{
- public interface ISearcher
- {
- DateTime CreationTime { get; }
- List Search(string text, string filter, int resultListLength, out SearchStatusType status);
- void SetDefaultOperator(DefaultOperator defaultOperator);
- }
-}
diff --git a/PX.Search.Abstractions/PX.Search.Abstractions.csproj b/PX.Search.Abstractions/PX.Search.Abstractions.csproj
deleted file mode 100644
index 2201bcb..0000000
--- a/PX.Search.Abstractions/PX.Search.Abstractions.csproj
+++ /dev/null
@@ -1,30 +0,0 @@
-
-
-
- netstandard2.0
- True
- Px.Search.Abstractions
- v
- beta
- true
- false
-
- true
- Abstractions used when implementing a search provider for Px.Search
- https://github.com/statisticssweden/Px.Search.Abstractions
-
-
- $(AllowedOutputExtensionsInPackageBuildOutputFolder);.pdb
- Apache-2.0
-
-
-
-
- all
- runtime; build; native; contentfiles; analyzers; buildtransitive
-
-
-
-
-
-
diff --git a/PX.Search.Abstractions/PaxiomHelperExtensions.cs b/PX.Search.Abstractions/PaxiomHelperExtensions.cs
deleted file mode 100644
index 489824a..0000000
--- a/PX.Search.Abstractions/PaxiomHelperExtensions.cs
+++ /dev/null
@@ -1,173 +0,0 @@
-using System;
-using System.Collections.Generic;
-using System.Linq;
-using System.Text;
-using PCAxis.Paxiom;
-using PCAxis.Paxiom.Extensions;
-
-namespace Px.Search.Abstractions
-{
- ///
- /// Paxiom extensions
- ///
- public static class PaxiomHelperExtensions
- {
- public static string GetLastUpdated(this PXMeta meta)
- {
- DateTime lastUpdated = DateTime.MinValue;
- DateTime tryDate;
-
- if (meta.ContentVariable != null && meta.ContentVariable.Values.Count > 0)
- {
- foreach (Value value in meta.ContentVariable.Values)
- {
- if (value.ContentInfo != null)
- {
- if (value.ContentInfo.LastUpdated != null)
- {
- if (value.ContentInfo.LastUpdated.IsPxDate())
- {
- tryDate = value.ContentInfo.LastUpdated.PxDateStringToDateTime();
- if (tryDate > lastUpdated)
- {
- lastUpdated = tryDate;
- }
- }
- }
- }
- }
- }
- else if (meta.ContentInfo != null)
- {
- if (!string.IsNullOrEmpty(meta.ContentInfo.LastUpdated))
- {
- if (meta.ContentInfo.LastUpdated.IsPxDate())
- {
- tryDate = meta.ContentInfo.LastUpdated.PxDateStringToDateTime();
- if (tryDate > lastUpdated)
- {
- lastUpdated = tryDate;
- }
- }
- }
- }
-
- return lastUpdated.ToString(PCAxis.Paxiom.PXConstant.PXDATEFORMAT);
- }
-
- public static string GetTimeValues(this PXMeta meta)
- {
- for (int i = 0; i < meta.Variables.Count; i++)
- {
- if (meta.Variables[i].IsTime)
- {
- return string.Join(" ", (from v in meta.Variables[i].Values select v.Value).ToArray());
- }
- }
- return "";
- }
-
- public static string GetAllValues(this PXMeta meta)
- {
- StringBuilder builder = new StringBuilder();
- foreach (var var in meta.Variables)
- {
- if (!var.IsTime)
- {
- foreach (var val in var.Values)
- {
- builder.Append(val.Value);
- builder.Append(" ");
- }
- }
- }
- return builder.ToString();
- }
-
- public static string GetAllCodes(this PXMeta meta)
- {
- StringBuilder builder = new StringBuilder();
- foreach (var var in meta.Variables)
- {
- if (!var.IsTime)
- {
- foreach (var val in var.Values)
- {
- if (!var.Values.IsCodesFictional)
- {
- builder.Append(val.Code);
- builder.Append(" ");
- }
- }
- }
- }
- return builder.ToString();
- }
-
- public static string GetAllGroupings(this PXMeta meta)
- {
- StringBuilder builder = new StringBuilder();
- foreach (var var in meta.Variables)
- {
- if (var.HasGroupings())
- {
- foreach (GroupingInfo gi in var.Groupings)
- {
- builder.Append(gi.Name);
- builder.Append(" ");
- }
- }
- }
- return builder.ToString();
- }
-
- public static string GetAllGroupingCodes(this PXMeta meta)
- {
- StringBuilder builder = new StringBuilder();
- foreach (var var in meta.Variables)
- {
- if (var.HasGroupings())
- {
- foreach (GroupingInfo gi in var.Groupings)
- {
- builder.Append(gi.ID);
- builder.Append(" ");
- }
- }
- }
- return builder.ToString();
- }
- public static string GetAllValuesets(this PXMeta meta)
- {
- StringBuilder builder = new StringBuilder();
- foreach (var var in meta.Variables)
- {
- if (var.HasValuesets())
- {
- foreach (ValueSetInfo vi in var.ValueSets)
- {
- builder.Append(vi.Name);
- builder.Append(" ");
- }
- }
- }
- return builder.ToString();
- }
- public static string GetAllValuesetCodes(this PXMeta meta)
- {
- StringBuilder builder = new StringBuilder();
- foreach (var var in meta.Variables)
- {
- if (var.HasValuesets())
- {
- foreach (ValueSetInfo vi in var.ValueSets)
- {
- builder.Append(vi.ID);
- builder.Append(" ");
- }
- }
- }
- return builder.ToString();
- }
- }
-}
diff --git a/PX.Search.Abstractions/SearchConstants.cs b/PX.Search.Abstractions/SearchConstants.cs
deleted file mode 100644
index 7ad6d96..0000000
--- a/PX.Search.Abstractions/SearchConstants.cs
+++ /dev/null
@@ -1,30 +0,0 @@
-using System;
-using System.Collections.Generic;
-using System.Linq;
-using System.Text;
-
-namespace Px.Search.Abstractions
-{
- public class SearchConstants
- {
- // Search field constants
- public const string SEARCH_FIELD_DOCID = "docid";
- public const string SEARCH_FIELD_SEARCHID = "searchid";
- public const string SEARCH_FIELD_PATH = "path";
- public const string SEARCH_FIELD_TABLE = "table";
- public const string SEARCH_FIELD_DATABASE = "database";
- public const string SEARCH_FIELD_PUBLISHED = "published";
- public const string SEARCH_FIELD_MATRIX = "matrix";
- public const string SEARCH_FIELD_TITLE = "title";
- public const string SEARCH_FIELD_VARIABLES = "variables";
- public const string SEARCH_FIELD_PERIOD = "period";
- public const string SEARCH_FIELD_VALUES = "values";
- public const string SEARCH_FIELD_CODES = "codes";
- public const string SEARCH_FIELD_GROUPINGS = "groupings";
- public const string SEARCH_FIELD_GROUPINGCODES = "groupingcodes";
- public const string SEARCH_FIELD_VALUESETS = "valuesets";
- public const string SEARCH_FIELD_VALUESETCODES = "valuesetcodes";
- public const string SEARCH_FIELD_SYNONYMS = "synonyms";
- public const string SEARCH_FIELD_TABLEID = "tableid";
- }
-}
diff --git a/PX.Search.Abstractions/SearchResultItem.cs b/PX.Search.Abstractions/SearchResultItem.cs
deleted file mode 100644
index 51920be..0000000
--- a/PX.Search.Abstractions/SearchResultItem.cs
+++ /dev/null
@@ -1,44 +0,0 @@
-using System;
-using System.Collections.Generic;
-using System.Linq;
-using System.Text;
-using Newtonsoft.Json;
-
-namespace Px.Search.Abstractions
-{
- ///
- /// Represents a table found by a search
- ///
- public class SearchResultItem
- {
- ///
- /// Table
- ///
- [JsonProperty("id")]
- public string Table { get; set; }
-
- ///
- /// Table path within its database
- ///
- [JsonProperty("path")]
- public string Path { get; set; }
-
- ///
- /// Table title
- ///
- [JsonProperty("title")]
- public string Title { get; set; }
-
- ///
- /// Search score (relevance of search)
- ///
- [JsonProperty("score")]
- public float Score { get; set; }
-
- ///
- /// The date the table was published
- ///
- [JsonProperty("published")]
- public DateTime Published { get; set; }
- }
-}
diff --git a/PX.Search.Abstractions/SearchStatusType.cs b/PX.Search.Abstractions/SearchStatusType.cs
deleted file mode 100644
index c3ff0dd..0000000
--- a/PX.Search.Abstractions/SearchStatusType.cs
+++ /dev/null
@@ -1,17 +0,0 @@
-using System;
-using System.Collections.Generic;
-using System.Text;
-
-namespace Px.Search.Abstractions
-{
- ///
- /// Describes status of a search attempt
- ///
- public enum SearchStatusType
- {
- // A successful search has been made
- Successful,
- // No search index existed for the database/language
- NotIndexed
- }
-}
diff --git a/PX.Search.Abstractions/TableUpdate.cs b/PX.Search.Abstractions/TableUpdate.cs
deleted file mode 100644
index 48c6f0a..0000000
--- a/PX.Search.Abstractions/TableUpdate.cs
+++ /dev/null
@@ -1,25 +0,0 @@
-using System;
-using System.Collections.Generic;
-using System.Linq;
-using System.Text;
-
-namespace Px.Search.Abstractions
-{
- ///
- /// Holds information about a table update in a search index
- ///
- public class TableUpdate
- {
- ///
- /// Table path within its database
- /// Table Path is supposed to have the following format: path/path/path/table
- /// Example: BE/BE0101/BE0101A/BefolkningNy
- ///
- public string Path { get; set; }
-
- ///
- /// Table id
- ///
- public string Id { get; set; }
- }
-}