You are currently browsing legacy 4.1 version of documentation. Click here to switch to the newest 5.0 version.
Migration: Indexes defined using client API
Below there is list of changes to
Raven.Client.Indexes namespaces to
AbstractIndexCreationTask and AbstractMultiMapIndexCreationTask
MaxIndexOutputsPerDocument property was removed. A warning is issued instead. Read dedicated about performance hints if you use when fanout indexes
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 constant has been moved to
FieldIndexing.Analyzed has been renamed to
FieldIndexing.NotAnalyzed has been renamed to
Map property has been removed. Use
Maps property instead.
Options as are now defined per field using