This project is read-only.

Documentation CreateModule Indexed Missing

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

I notice in the link below

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


public int UpdateFrom2() {
ContentDefinitionManager.AlterTypeDefinition("Product", cfg => cfg
return 3;

Do you have any idea about how to fix it?
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.