Files
Orchard/src/Orchard.Web/Modules/Orchard.Search/Models/AdminSearchSettingsPart.cs
2014-07-30 10:29:06 -07:00

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); }
}
}
}