Search isnt working for Image formats and video format
Code:
using GroupDocs.Search;
using GroupDocs.Search.Results;
using System;
using Index = GroupDocs.Search.Index;
//initialize License
License lic = new License();
string indexFolder = @“c:\MyIndex”;
string documentsFolder = @“e:\newfolder”; // NOTE: Put here actual path for your documents
string query = @“socio”;
Index index = new Index(indexFolder); // Creating index in the specified folder
index.Add(documentsFolder); // Indexing documents from the specified folder
SearchResult result = index.Search(query); // Searching in index
foreach (FoundDocument document in result)
{
Console.WriteLine(document.DocumentInfo.FilePath);
}
Text in images is recognized and indexed when you implement or integrate an external library or service for OCR. Please have a look at this documentation article. You can download this example application as well.
However, there is indexing error/issue with document “sample.eml”. We are investigating the problem.
I tried to implement with the same code you gave and it is giving PARAMETER IS NOT VALID in aspose.ocr . Someone else also had this issue but that is private thread and i can’t see the solution to it. Can you please Help me in this? Timeout is happening as “null” value is coming in memory stream. Code is same as yours and directory contains all type of files. Be it text and also png gif. or does it only work when there are ONLY image files? REsult is coming “” for images. Images which i sent above. I have OCR license too
Could you please share the sample application along-with index and documents folder (not just the code file)? We’ll then further look into this issue.
We have not yet implemented text recognition in videos. For video formats, only metadata is indexed.
Also, for the MPP format, only metadata is indexed in accordance with the table.
There is the code file and the document file. Tried both. Tesseract ocr and Aspose ocr. even these images are not detecting “sa” text even on live demo you have implemented on site.