[Solved] How to search for document content in Mint 18.3

Quick to answer questions about finding your way around Linux Mint as a new user.
Forum rules
There are no such things as "stupid" questions. However if you think your question is a bit stupid, then this is the right place for you to post it. Stick to easy to-the-point questions that you feel people can answer fast. For long and complicated questions use the other forums in the support section.
Before you post read how to get help. Topics in this forum are automatically closed 6 months after creation.
Locked
User avatar
deanr72
Level 3
Level 3
Posts: 184
Joined: Sat Mar 24, 2018 2:00 pm
Location: Poland

[Solved] How to search for document content in Mint 18.3

Post by deanr72 »

Hi all.

I can't seem to search for documents or their contents on Mint. I have Recoll on Ubuntu Mate which works perfectly but on Mint the search only comes up with a couple pdf documents not the docx files.

I installed SearchMonkey and the same - even files that I know contain the content words do not appear in the search. The files are all in my connected Dropbox file. Any idea why searching files works on Ubuntu Mate but not Mint?
Last edited by LockBot on Wed Dec 28, 2022 7:16 am, edited 2 times in total.
Reason: Topic automatically closed 6 months after creation. New replies are no longer allowed.
Cosmo.
Level 24
Level 24
Posts: 22968
Joined: Sat Dec 06, 2014 7:34 am

Re: How to search for document content in Mint 18.3

Post by Cosmo. »

I don't know / use it, so only a shot in the dark: Look in synaptic, if there are recommended packages. Perhaps some libraries are missing.

Besides that you might be interested in DocFetcher.
User avatar
smurphos
Level 18
Level 18
Posts: 8498
Joined: Fri Sep 05, 2014 12:18 am
Location: Irish Brit in Portugal
Contact:

Re: How to search for document content in Mint 18.3

Post by smurphos »

gnome-search-tool is a straightforward GUI filesystem search application that can search by filename or file contents. It's effective if not the fastest- it doesn't do any pre-indexing. I don't really understand why it's not installed by default. In Cinnamon at least there are preconfigured keyboard short-cuts for it.

apt install gnome-search-tool - the GUI will appear in the menu as 'Search for Files'

For something a bit more advanced you could give tracker a go - apt install tracker-gui. This does index the file-system for quick search results. If your using Cinnamon there is a tracker applet available for download via the Applets settings module for quick searches or it is possible to set up the menu search field to provide tracker results. In the menu it's GUI is 'Desktop Search' and it's settings GUI is 'Search & Indexing'
For custom Nemo actions, useful scripts for the Cinnamon desktop, and Cinnamox themes visit my Github pages.
User avatar
deanr72
Level 3
Level 3
Posts: 184
Joined: Sat Mar 24, 2018 2:00 pm
Location: Poland

Re: How to search for document content in Mint 18.3

Post by deanr72 »

I don't know what's going on. I've got Mint 18.3 on a laptop and a desktop and the only positive is that at least they are responding in exactly the same way. Unhelpfully.

Docfetcher will not open on either machine after clicking either of the execution files (yes, the linux ones not the windows ones). It works a treat on Mate so I know I'm doing it right.

Gnome-search-tool takes much too long searching to be useable - and then comes up with the message 'No Files Found'. Even searching for the rather usual words 'cabbage' and 'cuwhich I wrote in a text this morning so I know it's there!

I've added Dropbox to the index and 'applied' in changes in Tracker but when I enter a word into the search box the whole programme just seems to sit there doing nothing. There's no sign that it's actually searching for anything and the GUI is, erm, minimal, to say the least and doesn't offer any further insight.

This is really going to be a deal-breaker for me too because if I can't search the content of docs I won't be able to work effectively - a bit like today where I've managed to do very little because of this issue :-/. Grrr.

Thanks for the responses so far but any other ideas what I can do to search the content on .docx files on Mint?

P.S. Research tells me SearchMonkey doesn't actually search the content of texts so that's a no-go.
User avatar
smurphos
Level 18
Level 18
Posts: 8498
Joined: Fri Sep 05, 2014 12:18 am
Location: Irish Brit in Portugal
Contact:

Re: How to search for document content in Mint 18.3

Post by smurphos »

Image

Have you opened the advanced options in gnome-search-tool?

This search - limited to my Documents folder returned these results in less than a second.

Tracker needs a bit of time to build it's index to be useful - agreed the GUI is less than helpful.
For custom Nemo actions, useful scripts for the Cinnamon desktop, and Cinnamox themes visit my Github pages.
User avatar
greerd
Level 6
Level 6
Posts: 1060
Joined: Sat Jul 31, 2010 10:58 am
Location: Nova Scotia, Canada

Re: How to search for document content in Mint 18.3

Post by greerd »

Well, you could use grep from the terminal, something like:

Code: Select all

grep -r -l --include={*.pdf,*.docx} "search term" /path/to/base/search/directory/
where
-r => recursive
-l => list filenames
--include={*.pdf,*.docx} => optional, only search in pdf and docx files. (you can add more)
"search term" => search term with quotes
/path/to/base/search/directory/ => optional, but without this you should cd into the base directory of your search before running grep.
altair4
Level 20
Level 20
Posts: 11460
Joined: Tue Feb 03, 2009 10:27 am

Re: How to search for document content in Mint 18.3

Post by altair4 »

Just an FYI but enjoy gnome-search-tool while you can. It's been removed from the repository in Ubuntu 18.04: https://ubuntuforums.org/showthread.php?t=2386714

It's a pity.
Please add a [SOLVED] at the end of your original subject header if your question has been answered and solved.
User avatar
deanr72
Level 3
Level 3
Posts: 184
Joined: Sat Mar 24, 2018 2:00 pm
Location: Poland

Re: How to search for document content in Mint 18.3

Post by deanr72 »

This is what my gnome-search-tool looks like. And this is with the 'select more options' open. I can't see any way to access 'advanced options'.

I also notice there are no doc/docx files in your pic smurphos which are what I specifically need to search. Note: Tracker is coming up with hits now for the word 'rice' but once again only pdf files not docx.

Using the terminal is not really an option greerd - I appreciate the sentiment but that looks like scary nonsense that you've written there :wink: .

Image
Cosmo.
Level 24
Level 24
Posts: 22968
Joined: Sat Dec 06, 2014 7:34 am

Re: How to search for document content in Mint 18.3

Post by Cosmo. »

gnome-search-tool is a fine tool, but is not able to read the content of office files, so forget it.

Regarding DocFetcher: Is a Java Runtime installed?
I wrote a tutorial about installing DocFetcher, it might be of help.
User avatar
smurphos
Level 18
Level 18
Posts: 8498
Joined: Fri Sep 05, 2014 12:18 am
Location: Irish Brit in Portugal
Contact:

Re: How to search for document content in Mint 18.3

Post by smurphos »

altair4 wrote: Fri Apr 27, 2018 1:34 pm Just an FYI but enjoy gnome-search-tool while you can. It's been removed from the repository in Ubuntu 18.04: https://ubuntuforums.org/showthread.php?t=2386714

It's a pity.
tracker-gui is gone too - it looks like the newest tracker in Bionic is pretty much intended to be a Gnome-Shell only backend - https://wiki.gnome.org/Projects/Tracker ... ingStarted.

At least Cinnamon has got the https://github.com/glebihan/cinnamon-tracker-applet but the configuration of tracker will be via gsettings / dconf-editor.....
For custom Nemo actions, useful scripts for the Cinnamon desktop, and Cinnamox themes visit my Github pages.
User avatar
deanr72
Level 3
Level 3
Posts: 184
Joined: Sat Mar 24, 2018 2:00 pm
Location: Poland

Re: How to search for document content in Mint 18.3

Post by deanr72 »

Thanks for the link Cosmo but that's all well beyond me...

App Grid tell me Java Common is installed but I've no idea how to check to see whether it's running or not.
Hoser Rob
Level 20
Level 20
Posts: 11796
Joined: Sat Dec 15, 2012 8:57 am

Re: How to search for document content in Mint 18.3

Post by Hoser Rob »

smurphos wrote: Fri Apr 27, 2018 11:30 am gnome-search-tool is a straightforward GUI filesystem search application that can search by filename or file contents. It's effective if not the fastest- it doesn't do any pre-indexing. I don't really understand why it's not installed by default. In Cinnamon at least there are preconfigured keyboard short-cuts for it.

apt install gnome-search-tool - the GUI will appear in the menu as 'Search for Files'
...
+1 on gnome-search-tool. I far prefer it to Catfish, which is often recommended too.
For every complex problem there is an answer that is clear, simple, and wrong - H. L. Mencken
User avatar
deanr72
Level 3
Level 3
Posts: 184
Joined: Sat Mar 24, 2018 2:00 pm
Location: Poland

Re: How to search for document content in Mint 18.3

Post by deanr72 »

Looks like problem solved!

From recoll menu go Help > Missing Helpers

There was a number of things listed as missing, speciifically:

Perl::Image::ExifTool,
antiword,
untex,
xsltproc

I found each of these listed in App Grid, installed them, rebooted Mint and rebuilt index in Recoll.

Now it is finding .doc and .docx files in the search. Phew!

Question is, of course, why weren't these installed with the Recoll package in the first instance? :(
linaafryn12_

Re: How to search for document content in Mint 18.3

Post by linaafryn12_ »

deanr72 wrote: Sat Apr 28, 2018 12:58 pm.
How do you install them? recently i have the same problem too:(
User avatar
deanr72
Level 3
Level 3
Posts: 184
Joined: Sat Mar 24, 2018 2:00 pm
Location: Poland

Re: How to search for document content in Mint 18.3

Post by deanr72 »

linaafryn12_ wrote: Tue Dec 03, 2019 6:20 am
deanr72 wrote: Sat Apr 28, 2018 12:58 pm.
How do you install them? recently i have the same problem too:(
I installed this software centre and installed them directly from there: https://www.appgrid.org/
dm999

Re: [Solved] How to search for document content in Mint 18.3

Post by dm999 »

Thanks for the tip for Recoll, I needed a replacement for 'Everything' that I used for searching on Win 10.

I just installed it through the Software Manager, where I saw this comment in a review -
Just remember that to search in LO & MS Office files, you also need python-libxslt1 and python-libxml2 for Recoll v1.22 to 1.24, or python3-lmxl for 1.25 and newer.
Adding these worked for me and I'm able to search the content of Office files.

Cheers,
DM.
Locked

Return to “Beginner Questions”