search refactoring

This commit is contained in:
sbwalker
2024-06-08 16:14:56 -04:00
parent 175675ad99
commit bc0573918f
16 changed files with 183 additions and 166 deletions

View File

@ -31,9 +31,9 @@ namespace Oqtane.Models
public string AdditionalContent { get; set; }
public IList<SearchContentProperty> Properties { get; set; }
public IList<SearchContentProperty> SearchContentProperties { get; set; }
public IList<SearchContentWords> Words { get; set; }
public IList<SearchContentWord> SearchContentWords { get; set; }
public override string ToString()
{

View File

@ -0,0 +1,24 @@
using System;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
namespace Oqtane.Models
{
public class SearchContentWord
{
[Key]
public int SearchContentWordId { get; set; }
public int SearchContentId { get; set; }
public int SearchWordId { get; set; }
public int Count { get; set; }
public DateTime CreatedOn { get; set; }
public DateTime ModifiedOn { get; set; }
public SearchWord SearchWord { get; set; }
}
}

View File

@ -1,19 +0,0 @@
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
namespace Oqtane.Models
{
public class SearchContentWords
{
[Key]
public int WordId { get; set; }
public int SearchContentId { get; set; }
public int WordSourceId { get; set; }
public int Count { get; set; }
public SearchContentWordSource WordSource { get; set; }
}
}

View File

@ -1,12 +1,15 @@
using System;
using System.ComponentModel.DataAnnotations;
namespace Oqtane.Models
{
public class SearchContentWordSource
public class SearchWord
{
[Key]
public int WordSourceId { get; set; }
public int SearchWordId { get; set; }
public string Word { get; set; }
public DateTime CreatedOn { get; set; }
}
}