Code Monkey home page Code Monkey logo

masala's Introduction

masala

A WordPress plugin that puts the full content of uploaded text, PDF, DOC and other files into metadata upon upload.

This plugin (download) puts the full content of uploaded text, PDF, DOC into metadata upon upload. what this means, is that WordPress 'search' will then also search the contents of uploaded documents.

this is done with the magic of Apache Tika.

This was written out of desperation - plugins called 'search everything' didn't, like, search everything.

with masala, now they do.

I don't really want to be bothered with support - I have yet to clean this up and submit to official plugin directory - meanwhile I'm sharing because who knows when I'll get around to that, as it works as-is for my needs.

(home page here, same content below - http://avatari.net/public/wordpress/masala/)

How to install:

  1. install plugin into wordpress

  2. install tika's jar (http://tika.apache.org/) somewhere on your machine (this also assumes you have java on your machine)

  3. change configuration settings - right now, just edit them in the plugin's PHP file

  4. install 'search everything' (http://wordpress.org/plugins/search-everything/) - or any plugin that searches post metadata, configured it to do so

OK!

How to use:

  1. upload content if it's a PDF or DOC, it will take an extra few seconds after upload to process the file & insert metadata.

  2. search the attachment's contents (now in metadata) will be searched per-search, and attachment will be listed in search results if there's a match.

  3. delete content. when 'permanently deleted' through wordpress 'media' menu, this plugin will delete all metadata it created.

notes:

If it's not a PDF or doc, this plugin will not be activated. (yet, can support all formats tika supports (http://tika.apache.org/1.4/formats.html)- just edit the 'allowed' array in the plugin php file)

I also use 'publication manager' (http://wordpress.org/plugins/tags/publication-manager) - which is great for academic purposes - however when 'deleted' through there, it's still present in 'media' - so one must delete it in both places to actually be rid of it.

why masala?

in the tradition of open source software, it's a bad pun (on Apache Tika)

Masala actually is a mixture of spices in Indian, Nepali, Bangladeshi and Pakastani cuisines.

Masala digtially, is this WordPress plugin - not as tasty, but still a mix of spicy code. as in, will cause indigestion.

also, this is my first WP plugin - it's very limited, only adds and deletes metadata upon upload for file formats that it knows.but it works !!!

i'm using it on a few WP sites for work (named-data.net, ndn.ucla.edu)

The hope is that someone will either extend this, or bite this to use in existing plugins - and meanwhile that this distribution will help some users out.

masala's People

Contributors

nanodust avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.