Files
mixtape/zero.Api/Endpoints/Search/Indexes/zero_Backoffice_Search.cs
T

20 lines
544 B
C#
Raw Normal View History

2021-11-22 14:29:22 +01:00
using Raven.Client.Documents;
2021-12-01 13:03:06 +01:00
namespace zero.Api.Endpoints.Search;
2021-11-22 14:29:22 +01:00
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
2021-11-27 16:33:05 +01:00
foreach (var map in options.For<SearchOptions>())
2021-11-22 14:29:22 +01:00
{
Maps.Add(map.BuildInstruction(store));
}
//Index(nameof(SearchIndexResult.Name), FieldIndexing.Search);
//Index(nameof(SearchIndexResult.Fields), FieldIndexing.Search);
}
}