Jump to content

Recommended Posts

Posted (edited)

This project is published on GitHub , the full document and download can be found here: https://github.com/MacHu-GWU/afwf_fts_anything-project


fts.anything is an Alfred Workflow allow you to custom full-text search on your own dataset. You can easily define which fields you want to search, how you want the data to be matched and send the result to other workflow to process.






The Data Set (IMDB Top 3 movies, content of ``movie.json``):


        "description": "Two imprisoned men bond over a number of years, finding solace and eventual redemption through acts of common decency.",
        "genres": "Drama",
        "movie_id": 1,
        "title": "The Shawshank Redemption"
        "description": "The aging patriarch of an organized crime dynasty transfers control of his clandestine empire to his reluctant son.",
        "genres": "Crime,Drama",
        "movie_id": 2,
        "title": "The Godfather"
        "description": "The early life and career of Vito Corleone in 1920s New York City is portrayed, while his son, Michael, expands and tightens his grip on the family crime syndicate.",
        "genres": "Crime,Drama",
        "movie_id": 3,
        "title": "The Godfather: Part II"

Search Setting (content of ``movie-setting.json``):

    "columns": [ // define search mode for each field
            "name": "movie_id",
            "type_is_store": true
            "name": "title",
            "ngram_maxsize": 10,
            "ngram_minsize": 2,
            "type_is_ngram": true
            "name": "description",
            "type_is_phrase": true
            "keyword_lowercase": true,
            "name": "genres",
            "type_is_keyword": true
    "title_field": "title", // title on Alfred drop down menu
    "subtitle_field": "description", // subtitle on Alfred drop down menu
    "arg_field": "movie_id", // argument for other workflow component
    "autocomplete_field": "{movie_id} - {title}", // tab auto complete behavior
    "icon_field": "/Users/<username>/.alfred-fts/movie-icon.png"


Edited by MacHu-GWU

Share this post

Link to post

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Create New...