Files
mixtape/zero.Api/Endpoints/Search/Indexes/zero_Backoffice_Search.cs
T
2021-12-01 13:03:06 +01:00

20 lines
544 B
C#

using Raven.Client.Documents;
namespace zero.Api.Endpoints.Search;
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>())
{
Maps.Add(map.BuildInstruction(store));
}
//Index(nameof(SearchIndexResult.Name), FieldIndexing.Search);
//Index(nameof(SearchIndexResult.Fields), FieldIndexing.Search);
}
}