Thanks to all our contributors!

MvcCms Search

MvcCms search comes with the option to be powered by MS SQL Server Full Text Search or by regular like sql statements.  One of the benefits of Full Text Search is that results are ordered by rank of relevancy to the search term and near and inflectional matches are made.  Also Full Text allows stop words to be created that will not match and filters out common words.

MvcCms search is also available as a web method.  In order to search this site from java script using a cross site library such as prototype you can call as in the example below.

 

var data = { Term: phrase }
var encoded = JSON.stringify(data);
$.post(
    "/mvccmsAjax/Search/",
    { data: encoded },
    function(data) {
        var objdata = data;
        if (objdata.error) {
            alert(objdata.error);
        }
        else {
            PopulateSearchResults(objdata);
        }
    },
    "json"
);

 

Below is a screen shoot of an example search for 'mvc'.