MarkLogic WordPress Plugin

If you want to provide advanced search to your WordPress website, you can use MarkLogic WordPress plugin to replace the default search with MarkLogic search.

The plugin integrates with MarkLogic database, sending all your content – pages, posts, and custom content as well – from WordPress website to a MarkLogic server.  Then when a search is made on your site, it will send the query to MarkLogic server, retrieve search results, and display them on the search results page.  It’s all done through MarkLogic’s REST application which is extremely easy to set up and configure.  Then we used MarkLogic REST API PHP Library to facilitate the communication between WordPress and MarkLogic REST endpoint.

If you have a small WordPress website with less than 100 pages, then this plugin may be an overkill for you.  You may find this plugin useful in one of following cases:

  • You manage a WordPress website with hundreds or thousands of pages and want to provide fast search
  • You manage multiple, related WorPress websites – such as multiple websites for a single organization – and want to provide one search against all databases
  • You want to provide advanced search with features such as facets/taxonomies, indexed search

Below shows data structure of a sample blog post before it is ingested into MarkLogic.  Notice that the category and tag information is included as well.

I will go into details of the plugin in upcoming blog posts.  I just wanted to introduce the plugin at a high-level .

Stay tuned!