Free Support Forum -

Document search API doesn't return results in .NET

Hi there
I added 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;
// 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. version :
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.

Jegadeesh S


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?