By Ladoo posted on 23 Feb 2012

Most content management systems only offer basic search functionality, and Matrix is no exception. Although this author is biased because at the time of writing, he works for an enterprise search engine vendor, an enterprise search engine can offer a lot over the standard Matrix Search, including:

  • Better quality results. The algorithms used by enterprise search engines are more sophisticated, and normally return better results out of the box than Matrix.
  • Customisable. Results can be fine tuned based on the business requirements of your organisation. Results can easily be added, removed, upweighted or downweighted based on any number of criteria. Specific results can be featured based on specific queries.
  • Features. Query expansions (thesaurus/synonyms), faceted navigation, query suggestions, best bets and more are available in most enterprise search engines.
  • Performance. Search results will be returned much faster than the standard Matrix search.
  • Scalability. Search in Matrix is very resource intensive, and can affect all aspects of Matrix performance, from delivering a front-end page to the user, to using the Administration Interface. Enterprise search engines can remove this load from Matrix, freeing up resources for Matrix to perform other tasks.
(Note: It should also be added that Google Custom Search accounts are free for Government, Education and not for profit organisations.)


If enterprise search isn't an option, let's look at the ways you can reduce the load Search may place on your Matrix system.

Global Search Options

On the Details of the "Search Manager", set the following options:
  • Minimum Word Length: 4 is the default, and appropriate for most systems, but a higher value will reduce the size of the search index, and typically improve performance. This setting doesn’t affect Oracle-based systems.
  • banything specific to your organisation or locality. Acronyms shorter than the Minimum Word Length are most important here (state or province and organisational abbreviations would be the most common examples).
  • Contains Search set to "No". This option normally returns less relevant results anyway, and it's unusual to find this option enabled by default in an enterprise search engine.
  • Noise Word List: enterprise search engines have an internal set of stop words which are not indexed, but Matrix only ships with 4 of these words: a, the, it, this. Adding a better list of these words should reduce the size of your index, and hence the amount of load put on the system. Wikipedia  typically has links to several lists of pre-defined stop words to use in the "Noise Word List".
A list of keywords indexed in a particular system can be generated using the following SQL statement on your database:

SELECT value, count(value) 
  FROM sq_sch_idx GROUP BY value

at which point it becomes clear that content, page, and contents should also be added to the list.

Search Pages

To improve the performance of Search Page assets, set these options on the Details screen:

  • Search as Public User to "Yes" (if this is a public search across live assets).
  • No Roles Check to "Yes" (if you're not using roles).
  • No Group Access Check to "Yes" (if this is a public search across live assets).



There are currently no comments for this article. Why not be the first to post a comment?

Build your own search

By Ladoo posted on 20 Oct 2011

You can create your own personal Search Page to assist with locating and editing the content you look after. This can be especially helpful in larger systems where quick search becomes less accurate.

Output content to a file

By Ladoo posted on 17 Nov 2011

As well as HTML and text, Matrix can be configured to directly output XML, iCal, RTF and even Word and Excel documents, so that users can directly download and work with these files.

Dynamic Asset Listings

By Liam Coltman posted on 14 Aug 2010

Learn how to make you asset listings dynamic so they can be reused across multiple pages on your site

Comment all you want

By Liam Coltman posted on 08 Sep 2011

Using a combination of an Asset Builder and an Asset Listing in Mysource Matrix can allow you to create a comment area in your website and can be used for blogs.

Trigger happy images

By Liam Coltman posted on 23 Aug 2010

Triggers are a very powerful feature in MySource Matrix. Learn how to set up a trigger to create image varieties

Pretty as a picture Image Gallery

By Liam Coltman posted on 13 Nov 2010

Image Galleries can help to add a bit of colour to your website. With a little bit of tinkering you can make an image gallery that will rival the Louvre

News delivered to your doorstep

By Liam Coltman posted on 10 Sep 2010

With users becoming more and more demanding on their news and website updates RSS provides the perfect option to keep readers up to date with what is happening on your site.

Matrix PHP API - Creating Standard Page Assets

By Anton Babushkin posted on 28 Feb 2011

Using the Matrix PHP API can allow you to do more than you previously would have thought possible. This article will teach you how to create Standard Page assets as well as give you some insight into when you could utilize the PHP API in the real world.

Release notes for Matrix 1.2

By Anton Babushkin posted on 16 Jul 2013

You can create your own personal Search Page to assist with locating and editing the content you look after. This can be especially helpful in larger systems where quick search becomes less accurate.

Paint Layouts

By Liam Coltman posted on 06 Mar 2010

The best way to think of a Paint Layout is a Design File for your page content.