ARK-Builders / ARK-Navigator

Android app for navigation through your data
MIT License
15 stars 15 forks source link

Text search #178

Open kirillt opened 2 years ago

kirillt commented 2 years ago

It should be possible to filter documents by presence of query word in their text content. For this, it's necessary to implement:

  1. Text-layer extraction from PDF and other text-based documents. This must happen during folder indexing.
  2. New button or menu option in Resources Grid screen, which displays text input box. The string from the input should be searched in text layers of all resources. Matched resources must be displayed.
sisco0 commented 2 years ago

I would suggest we would go further on this and we could use Tesseract for OCR text recognition of images and PDF English (and possible other languages) documents. In this way, we could have text metadata attached to each PDF and image files and not only plain text files.

The next observations must be taken into account:

  1. It should be studied what could be done for Microsoft Office, LibreOffice (rich-formatted).
  2. It should be studied what could be done with binary files.
  3. If we are required, we could use Tesseract TryGetBoundingBox function for highlighting results in PDF and image files at a detailed search results view.
  4. For rich-formatted documents we should use other solution as the one explained in the point above.
kirillt commented 2 years ago

Good thoughts, I've just created separate issue for text layer, since it can also be used for tags suggestions: #183