The ContentIndexer allows you to add information to the Windows Search Index. You can use any known Windows Properties. This example shows how to use the Name, Keywords, and Comment properties, as well as how to add content to be indexed.

In addition, a language may be specified by entering a BCP-47 language code. When entered, this sample will index the properties using that language information. Specifying the language ensures that things like spaces and punctuation will be properly handled for the content. If the language is not known, it is recommended to not specify it. The indexer will attempt to analyze the text in these cases and programmatically specify the language.

Item Key:
Name:
Keywords:
Comment:
Content:
Language: