mirror of
https://github.com/OrchardCMS/Orchard.git
synced 2026-02-09 09:16:41 +08:00
24 lines
833 B
C#
24 lines
833 B
C#
using System;
|
|
using Orchard.ContentManagement;
|
|
using Orchard.Environment.Extensions;
|
|
|
|
namespace Orchard.Search.Models {
|
|
[OrchardFeature("Orchard.Search.Content")]
|
|
public class AdminSearchSettingsPart : ContentPart {
|
|
public string[] SearchedFields {
|
|
get { return (Retrieve<string>("SearchedFields") ?? "").Split(new[] {',', ' '}, StringSplitOptions.RemoveEmptyEntries); }
|
|
set { Store("SearchedFields", String.Join(", ", value)); }
|
|
}
|
|
|
|
public bool FilterCulture {
|
|
get { return this.Retrieve(x => x.FilterCulture); }
|
|
set { this.Store(x => x.FilterCulture, value); }
|
|
}
|
|
|
|
public string SearchIndex {
|
|
get { return this.Retrieve(x => x.SearchIndex); }
|
|
set { this.Store(x => x.SearchIndex, value); }
|
|
}
|
|
}
|
|
}
|