GroupDocs.Search allows creating of full-text and / or metadata index on documents. To index only metadata without main content of documents, you only need to set IndexType.MetadataIndex when creating an index. The size of an index of this type will be very small.
The following example demonstrates the creation of the metadata index.
StringindexFolder="c:\\MyIndex\\";StringdocumentsFolder="c:\\MyDocuments\\";// Creating an instance of index settings
IndexSettingssettings=newIndexSettings();settings.setIndexType(IndexType.MetadataIndex);// Setting index type
// Creating an index in the specified folder
Indexindex=newIndex(indexFolder,settings);// Indexing documents from the specified folder
index.add(documentsFolder);// Searching in the index
SearchResultresult=index.search("Einstein");
More resources
GitHub examples
You may easily run the code from documentation articles and see the features in action in our GitHub examples: