Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

newbph

macrumors newbie
Original poster
Nov 2, 2013
19
3
I use OpenOffice to create zillions of word processor files with the extension .odt
Finder and/or Spotlight finds words usually, but not always, and this is not acceptable!
I need to search everywhere in the computer for single-word strings like "Duncan" or "reincarnation" and I've done numerous tests that prove words are not being seen inside of files.
I installed EasyFind, but it doesn't find everything either.
I read up on a couple of other search programs, they're talking about how they do currency conversions or send email or wash the floors, or whatever - I don't care about any of that -
Also, I read a number of instructions that are supposed to find words through the Terminal but none of them seems to work either.
My feeling is, it can't be because they're .odt files, because I AM able to find things most of the time - but it's not dependable and I need dependable.
As a professional writer, I need a search that will infallibly find single words in my files.
PLEASE HELP!
 

JohnDS

macrumors 65816
Oct 25, 2015
1,183
249
Check your Spotlight prefs to make sure nothing is excluded in the Privacy Tab.

It is also possible that your Spotlight index is corrupted. Try rebuilding it:

1. Open the Spotlight preferences and go to the Privacy tab. Click on the + button and add Macintosh HD (if that is the name of your drive) to the Privacy Tab.
2. Close the System Prefs.
3. Re-open the Spotlight prefs and use the minus button to remove MacIntosh HD from the privacy list.
4. Close System Prefs.
[doublepost=1467939302][/doublepost]You could also try the freeware TextWrangler. See: http://www.andrewbrettwatson.com/in...s-within-a-folder-or-directoy-in-textwrangler

and http://www.barebones.com/products/textwrangler/download.html
 
  • Like
Reactions: NoBoMac

Kornelis

macrumors member
Dec 4, 2010
79
18
Amsterdam, NL
I guess the "problem" with ODF-files is that regardless of their suffixes (ODT, ODS, ODP etc), all ODF files are just ZIP archives. Inside them, the actual content is always stored in one plain text file called, unsurprisingly, content.xml. So in order to find something the system first has to decompress these files before they can be searched. I don't know if Spotlight does that for ODF-files.

I found this to search in the contents of ODF files:
https://forum.openoffice.org/en/for...&sid=16bb1b16855008eefff8e5a552827763#p361354

I don't have these ODT files, I use normal unformatted simple t(e)xt files, so I can't check it.
 
Last edited:

JohnDS

macrumors 65816
Oct 25, 2015
1,183
249
TextWrangler, which I referred to in an earlier post, has an option in its multi-file search to "search compressed documents".
 

NoBoMac

Moderator
Staff member
Jul 1, 2014
5,918
4,514
I second JohnDS's suggestion to rebuild the Spotlight index.

ADD: from memory, might be a little off, alternate to JohnDS's instructions, from Terminal:

Code:
mdutil -E /

I just did some tests and was able to locate ODF .odt and .ods files based on keywords entered. Enough samples to believe Spotlight is robust enough to deal with ODF documents.

The ODF files were initially created with OpenOffice, but over the years since, edited with LibreOffice. Doubt that makes a difference.

Oh, and: nothing special going on in my Spotlight settings (Documents, Spreadsheets, Presentations are checked, along with Reminders, Calendar, Contacts, PDF, etc etc).

ADD: with some searching, appears LibreOffice has a Spotlight plugin (actually, a mds importer):

/Applications/LibreOffice.app/Contents/Library/Spotlight/OOoSpotlightImporter.mdimporter

Judging by the name, sounds like should be one in OpenOffice as well: maybe old OO version and or bug in their importer?
 
Last edited:

Fishrrman

macrumors Penryn
Feb 20, 2009
28,601
12,717
In EasyFind, have you checked the option to show invisibles?

I'd also suggest using "Find Any File", as well.
 

grahamperrin

macrumors 601
Jun 8, 2007
4,942
648
Google Desktop probably indexed things without using Spotlight but it's no longer available from Google.

A search of Stack Exchange found What are the alternatives to OS X's Spotlight? - Ask Ubuntu. I spent a few minutes considering the answers, wondering whether any of the solutions would build on Mac OS X. Tracker was interesting (related: NEPOMUK - The Social Semantic Desktop - FP6-027705) but I didn't investigate further.

A second search of Stack Exchange, limited to Ask Different, found http://apple.stackexchange.com/a/122586/8546 with a belief that DEVONthink "builds its own search index, not relying on Spotlight". I'll test DEVONthink Pro Office (on Sierra) and edit the answer. Done.
 
Last edited:
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.