Free Support Forum - groupdocs.com

Document search API doesn't return results in .NET

Hi there
I added groupdocs.search trial library and added into my console project.
And when searching for keyword in documents with following sample code.

string indexFolder = @“c:\MyIndex”;
string documentsFolder = @“C:”;
// Creating an index in the specified folder
Index index = new Index(indexFolder);
// Indexing documents from the specified folder
IndexingOptions optionsIndex = new IndexingOptions();
optionsIndex.IsAsync = true;
index.Add(documentsFolder);
// Search with text query
SearchResult result = index.Search(“test”);
// Printing the result
Console.WriteLine("Documents found: " + result.DocumentCount);

No results is returned.
But there are documents with keyword “test” in the mentioned path.

Groupdocs.search version : 20.8.0.0
In .net environment.

Can you please assist me with this?
I would like to see the performance and accuracy of search results by performing some sample search for checking the feasibility before purchasing the license.

Thanks
Jegadeesh S

@mhorg

We cannot reproduce this issue at our end, have a look at this screenshot.PNG (50.6 KB). Can you please share the problematic files and a sample application to reproduce the issue?