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

All Gurus once were Newbies
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. Please stick to easy to-the-point questions that you feel people can answer fast. For long and complicated questions prefer the other forums within the support section.
Before you post please read how to get help
Post Reply
User avatar
deanr72
Level 3
Level 3
Posts: 163
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 deanr72 on Sat Apr 28, 2018 12:58 pm, edited 1 time in total.
Cosmo.
Level 23
Level 23
Posts: 17817
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 17
Level 17
Posts: 7332
Joined: Fri Sep 05, 2014 12:18 am
Location: Britisher
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: 163
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 17
Level 17
Posts: 7332
Joined: Fri Sep 05, 2014 12:18 am
Location: Britisher
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: 1056
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: 10179
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: 163
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 23
Level 23
Posts: 17817
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 17
Level 17
Posts: 7332
Joined: Fri Sep 05, 2014 12:18 am
Location: Britisher
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: 163
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 16
Level 16
Posts: 6452
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.
User avatar
deanr72
Level 3
Level 3
Posts: 163
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_
Level 1
Level 1
Posts: 1
Joined: Tue Dec 03, 2019 6:11 am

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: 163
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/
User avatar
dm999
Level 3
Level 3
Posts: 118
Joined: Sun Dec 01, 2019 1:04 pm

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.
LM 20 Xfce / Lenovo ideapad 500 15ISK / i5-6200U CPU @ 2.30GHz × 2 / 12GB RAM /
Post Reply

Return to “Newbie Questions”