I want to create custom index in Sitecore 6.5 through C#. I read this link: Creating Index through .Config
But I want to create custom index through C#, not any .config files. Any help?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
You cannot “create” the index via C#, you can only query and work with it in C#. In order to “have” an index it must be defined via configuration which defines the properties of how the index should exist, e.g. item types to include, fields to include, root path to begin indexing at, etc.