FoxTrot Search Forum
FoxTrot Search for macOS Forum

Home » Public Forums » FoxTrot Search User Forum » QuickLook / Indexing / Search
QuickLook / Indexing / Search [message #790] Sat, 21 July 2018 11:05 Go to next message
Edvard Munch
Messages: 2
Registered: July 2018
Junior Member
1. Does FoxTrot's indexing use a documents' QuickLook generator (.ql) to
find the contents of documents and add the document text to FoxTrot's
indexing?
2. If a particular document type (e.g., an XML file) does not have a
QuickLook generator in existence, will FoxTrot not index that document
contents?
3. If this is not the case, then how to get FoxTrot to index and search
the contents of XML files?


Thank you.
Re: QuickLook / Indexing / Search [message #795 is a reply to message #790] Mon, 23 July 2018 11:34 Go to previous message
FoxTrot Engineering
Messages: 384
Registered: April 2020
Senior Member
Edvard Munch wrote:

> 1. Does FoxTrot's indexing use a documents' QuickLook generator (.ql) to
> find the contents of documents and add the document text to FoxTrot's
> indexing?

No; Quick Look generators are absolutely not designed to be used repeatedly in the background to convert third party formats, and doing this would probably not give good results. Instead, FoxTrot uses Spotlight metadata importers, which are designed exactly for this purpose.

> 2. If a particular document type (e.g., an XML file) does not have a
> QuickLook generator in existence, will FoxTrot not index that document
> contents?

If there is no Spotlight importer for this particular document type, then xml documents should generally be indexed as plain text (i.e. all xml tags and properties are indexed, instead of extracting only human readable and meaningful data), if you enable "xml" in the "index contents of files" list, for each folder in the "indexed data" pane. However, this requires that the application that creates these files provide an UTI definition that declares this filetype as being an xml type. If this filetype is not declared, then the file contents won't be indexed at all.

> 3. If this is not the case, then how to get FoxTrot to index and search
> the contents of XML files?

There is currently a hidden preference for this, and we consider adding a user interface for this in a future version. This is documented here:

http://services.ctmdev.com/FoxTrot%20hidden%20preferences.ht ml

Type the following command in a Terminal.app window:

defaults write com.ctmdev.foxtrot Aliases -array-add "{type='xyz'; as='xml';}"

then rebuild your index; this should treat files with a .xyz extension as if they had a .xml extension.

You can run this command for multiple types; however if you want to change an already assigned type, you need to reset the preference completely, then assign a different type:

defaults delete com.ctmdev.FoxTrot Aliases
defaults write com.ctmdev.foxtrot Aliases -array-add "{type='xyz'; as='txt';}"

May I ask which file types you are trying to index?


Jérôme - CTM Engineering


------------------------------------------------------------ ---------
"Powermail soon became the most indispensable program in my life, and
now that I've upgraded to the newest version, I'm pleased to report
that it's gotten even better."
PowerMail user comment on www.versiontracker.com


Download a demo version from www.ctmdev.com
------------------------------------------------------------ ---------


Jérôme - FoxTrot Engineering
Previous Topic: Preview and View in Finder not working for 2 clients
Next Topic: Foxtrot not working on New MacBook Pro
Goto Forum:
  


Current Time: Fri Apr 19 21:43:00 GMT+2 2024