Documentation CreateModule Indexed Missing

Topics: General
Apr 30, 2013 at 12:03 AM
Hi,

I notice in the link below
http://docs.orchardproject.net/Documentation/Creating-a-module-with-a-simple-text-editor

I obtain the error

Error 2 'Orchard.ContentManagement.MetaData.Builders.ContentTypeDefinitionBuilder' does not contain a definition for 'Indexed' and no extension method 'Indexed' accepting a first argument of type 'Orchard.ContentManagement.MetaData.Builders.ContentTypeDefinitionBuilder' could be found (are you missing a using directive or an assembly reference?) C:\Orchard\Orchard.Source.1.6\src\Orchard.Web\Modules\SimpleCommerce\Migrations.cs 42 16 SimpleCommerce

on

public int UpdateFrom2() {
ContentDefinitionManager.AlterTypeDefinition("Product", cfg => cfg
.WithPart("CommonPart")
.WithPart("RoutePart")
.WithPart("BodyPart")
.WithPart("ProductPart")
.WithPart("CommentsPart")
.WithPart("TagsPart")
.WithPart("LocalizationPart")
.Creatable()
.Indexed());
return 3;
}

Do you have any idea about how to fix it?
Coordinator
Apr 30, 2013 at 12:56 AM
Add using Orchard.Indexing on top of your file, or use .WithSetting("TypeIndexing.Included", "true") instead.
Apr 30, 2013 at 8:12 PM
Hi Bertrand,

Thank you. ok you right.
Hum I dont see, the information was given in the documentation.

Best regards.