mirror of
https://github.com/Theodor-Springmann-Stiftung/hamann-ausgabe-core.git
synced 2025-10-29 09:15:33 +00:00
Implemented Fulltext search across tags and linebreaks for letters
This commit is contained in:
6
HaDocumentV6/Interfaces/ISearchable.cs
Normal file
6
HaDocumentV6/Interfaces/ISearchable.cs
Normal file
@@ -0,0 +1,6 @@
|
||||
namespace HaDocument.Interfaces;
|
||||
|
||||
public interface ISearchable {
|
||||
public string Element { get; }
|
||||
public string Index { get; }
|
||||
}
|
||||
@@ -2,9 +2,9 @@ using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Collections.Immutable;
|
||||
|
||||
namespace HaDocument.Models {
|
||||
public class Comment{
|
||||
public string Entry { get; } = "";
|
||||
namespace HaDocument.Models{
|
||||
public class Comment : HaDocument.Interfaces.ISearchable {
|
||||
public string Element { get; } = "";
|
||||
public string Index { get; } = "";
|
||||
public string Type { get; } = "";
|
||||
public string Lemma { get; } = "";
|
||||
@@ -21,7 +21,7 @@ namespace HaDocument.Models {
|
||||
SortedDictionary<string, Comment> subComments,
|
||||
string parent=""
|
||||
) {
|
||||
Entry = entry;
|
||||
Element = entry;
|
||||
Index = index;
|
||||
Type = type;
|
||||
Lemma = lemma;
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
namespace HaDocument.Models {
|
||||
public class Editreason {
|
||||
public class Editreason : HaDocument.Interfaces.ISearchable {
|
||||
public string Index { get; } = "";
|
||||
public string Element { get; } = "";
|
||||
public string Letter { get; } = "";
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
namespace HaDocument.Models {
|
||||
public class Letter : HaModel {
|
||||
public class Letter : HaModel, HaDocument.Interfaces.ISearchable {
|
||||
public string Index { get; } = "";
|
||||
public string Element { get; } = "";
|
||||
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
namespace HaDocument.Models {
|
||||
public class Marginal {
|
||||
public class Marginal : HaDocument.Interfaces.ISearchable {
|
||||
public string Index { get; } = "";
|
||||
public string Letter { get; } = "";
|
||||
public string Page { get; } = "";
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
namespace HaDocument.Models {
|
||||
public class Tradition {
|
||||
public class Tradition : HaDocument.Interfaces.ISearchable {
|
||||
public string Index { get; } = "";
|
||||
public string Element { get; } = "";
|
||||
|
||||
|
||||
@@ -156,8 +156,6 @@ namespace HaDocument.Reactors {
|
||||
(_availableVolumes == null && _availableYearRange.Item1 == 0 && _availableYearRange.Item2 == 0)
|
||||
) {
|
||||
var ZHInfo = !inZH ? null : new ZHInfo(AltLineNumbering, dateChanged, Volume, Page);
|
||||
if (Autopsic == "0")
|
||||
System.Diagnostics.Debugger.Break();
|
||||
var meta = new Meta(
|
||||
Index,
|
||||
Autopsic,
|
||||
|
||||
Reference in New Issue
Block a user