-
Notifications
You must be signed in to change notification settings - Fork 23
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
5 changed files
with
64 additions
and
44 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
53 changes: 28 additions & 25 deletions
53
src/Our.Umbraco.FullTextSearch/Options/FullTextSearchOptions.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,31 +1,34 @@ | ||
using Newtonsoft.Json; | ||
using System; | ||
using System.Collections.Generic; | ||
|
||
namespace Our.Umbraco.FullTextSearch.Options | ||
namespace Our.Umbraco.FullTextSearch.Options; | ||
|
||
public class FullTextSearchOptions | ||
{ | ||
public class FullTextSearchOptions | ||
{ | ||
[JsonProperty("enabled")] | ||
public bool Enabled { get; set; } = true; | ||
[JsonProperty("defaultTitleField")] | ||
public string DefaultTitleField { get; set; } = "nodeName"; | ||
[JsonProperty("indexingActiveKey")] | ||
public string IndexingActiveKey { get; set; } = "FullTextIndexingActive"; | ||
[JsonProperty("disallowedContentTypeAliases")] | ||
public List<string> DisallowedContentTypeAliases { get; set; } = new List<string>(); | ||
[JsonProperty("disallowedPropertyAliases")] | ||
public List<string> DisallowedPropertyAliases { get; set; } = new List<string>(); | ||
[JsonProperty("xPathsToRemove")] | ||
public List<string> XPathsToRemove { get; set; } = new List<string>(); | ||
[JsonProperty("fullTextContentField")] | ||
public string FullTextContentField { get; set; } = "FullTextContent"; | ||
[JsonProperty("fullTextPathField")] | ||
public string FullTextPathField { get; set; } = "FullTextPath"; | ||
[JsonProperty("enabled")] | ||
public bool Enabled { get; set; } = true; | ||
[JsonProperty("defaultTitleField")] | ||
public string DefaultTitleField { get; set; } = "nodeName"; | ||
[Obsolete("Use RenderingActiveKey instead")] | ||
[JsonProperty("indexingActiveKey")] | ||
public string IndexingActiveKey { get; set; } = "FullTextRenderingActive"; | ||
[JsonProperty("renderingActiveKey")] | ||
public string RenderingActiveKey { get; set; } = "FullTextRenderingActive"; | ||
[JsonProperty("disallowedContentTypeAliases")] | ||
public List<string> DisallowedContentTypeAliases { get; set; } = new List<string>(); | ||
[JsonProperty("disallowedPropertyAliases")] | ||
public List<string> DisallowedPropertyAliases { get; set; } = new List<string>(); | ||
[JsonProperty("xPathsToRemove")] | ||
public List<string> XPathsToRemove { get; set; } = new List<string>(); | ||
[JsonProperty("fullTextContentField")] | ||
public string FullTextContentField { get; set; } = "FullTextContent"; | ||
[JsonProperty("fullTextPathField")] | ||
public string FullTextPathField { get; set; } = "FullTextPath"; | ||
|
||
/// <summary> | ||
/// Pattern to use for highlighting text in search result html. Example: <b>{0}</b> | ||
/// </summary> | ||
[JsonProperty("highlightPattern")] | ||
public string HighlightPattern { get; set; } = "<b>{0}</b>"; | ||
} | ||
/// <summary> | ||
/// Pattern to use for highlighting text in search result html. Example: <b>{0}</b> | ||
/// </summary> | ||
[JsonProperty("highlightPattern")] | ||
public string HighlightPattern { get; set; } = "<b>{0}</b>"; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters