nextcloud / fulltextsearch

🔍 Core of the full-text search framework for Nextcloud
https://apps.nextcloud.com/apps/fulltextsearch
GNU Affero General Public License v3.0
213 stars 51 forks source link

Display search results in file #150

Open maldag opened 7 years ago

maldag commented 7 years ago

The full-text search will show results including a search in the text. Is ist possible, that it jumps and highlights the phrase in the document when I click on the result?

  1. Search for a text in the search bar, let's say "foo"
  2. The results panel lists about five entries.
  3. I click on an entry (let's say a pdf or a text document)
  4. It opens the entry in the browser via the pdf reader or collabora
  5. It jumps to the page where "foo" was found and highlights it. (Or it opens the search panel in the document and displays the results in there)
maldag commented 7 years ago

I've done some researching on that. When the search results are presented, one can click on a pdf file and it will show up in the browser. When I use the command line tool in windows to open a PDF I can add a command line argument to specify the search term. So if I was searching for "foo" and the result is "bar.pdf" one could open the pdf via C:\Program Files (x86)\Adobe\Acrobat\Acrobat.exe /A "search=foo" "<FullPath>\bar.pdf"