Migration: Indexes defined using client API
Below there is list of changes to AbstractIndexCreationTask
, AbstractMultiMapIndexCreationTask
and IndexDefinition
.
Namespace
Change Raven.Abstractions.Indexing
and Raven.Client.Indexes
namespaces to Raven.Client.Documents.Indexes
.
AbstractIndexCreationTask and AbstractMultiMapIndexCreationTask
MaxIndexOutputsPerDocument
MaxIndexOutputsPerDocument
property was removed. A warning is issued instead. Read dedicated about performance hints if you use when fanout indexes
Sort
There is no need to explicitly define sorting in definitions of static indexes anymore. RavenDB automatically determines sorting capabilities based on types of indexed values. You can remove Sort
method usages from your index classes, such as:
Sort(x => x.Month, SortOptions.Int);
Constants.AllFields
Constants.AllFields
constant has been moved to Constants.Documents.Indexing.Fields.AllFields
FieldIndexing.Analyzed
FieldIndexing.Analyzed
has been renamed to FieldIndexing.Search
FieldIndexing.NotAnalyzed
FieldIndexing.NotAnalyzed
has been renamed to FieldIndexing.Exact
IndexDefinition
Map
Map
property has been removed. Use Maps
property instead.
Field options
Options as are now defined per field using Fields
property.
3.x | 4.0 |
---|---|
|
|