Files
mixtape/zero.Backoffice/Modules/Search/zero_Backoffice_Search.cs
T
2021-11-22 14:29:22 +01:00

20 lines
556 B
C#

using Raven.Client.Documents;
namespace zero.Backoffice.Modules;
public class zero_Backoffice_Search : ZeroJavascriptIndex
{
public override void Setup(IZeroOptions options, IDocumentStore store)
{
// TODO index.Conventions is null, but needed for collection name retrieval
foreach (var map in options.For<SearchOptions>().GetAllItems())
{
Maps.Add(map.BuildInstruction(store));
}
//Index(nameof(SearchIndexResult.Name), FieldIndexing.Search);
//Index(nameof(SearchIndexResult.Fields), FieldIndexing.Search);
}
}