Skip to content

Cosmos: Allow vector and fulltext indexes on complex type scalar properties #38067

@JoasE

Description

@JoasE

What problem are you trying to solve?

Cosmos allows defining vector and fulltext indexes via the IsVectorIndex and IsFullTextIndex extension methods on IndexBuilder.
Currently, EF doesn't support defining indexes on complex type scalar properties, and therefore we can't implement this for cosmos.

b.ComplexProperty(x => x.Nested, n => n.HasIndex(x => x.Id)); // HasIndex does not exist.

Related: #11336

Describe the solution you'd like

After indexing complex type scalar properties is added, add IsVectorIndex and IsFullTextIndex extension methods for complex type scalar properties

Metadata

Metadata

Assignees

No fields configured for Feature.

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions