Closed huseyingoztok closed 3 months ago
You must specify the target Entity class in your call ie: await DB.Index< ClassThatImplementsIEntity >() .Key(x => x.A, KeyType.Text) .Key(x => x.B, KeyType.Text) .Key(x => x.C, KeyType.Text) .CreateAsync();
Actually, I'm trying it the way you suggested, but the indexes are not being created. @paolobriones @dj-nitehawk
await DB.Index<Item>() .Key(x => x.Make, KeyType.Text) .Key(x => x.Model, KeyType.Text) .Key(x => x.Color, KeyType.Text) .CreateAsync();
@huseyingoztok can you attach a small repro project pls? index creation works fine last i checked.
Hello,
I'm having trouble creating indexes in .NET Core 8. I’m providing a sample code below. What could be the reason why the indexes are not being created?
await DB.Index()
.Key(x => x.A, KeyType.Text)
.Key(x => x.B, KeyType.Text)
.Key(x => x.C, KeyType.Text)
.CreateAsync();
Best regards.