diff --git a/features/fuzzySearch/fuzzy_search.js b/features/fuzzySearch/fuzzy_search.js new file mode 100644 index 0000000..7109c37 --- /dev/null +++ b/features/fuzzySearch/fuzzy_search.js @@ -0,0 +1,385 @@ +(function() { + /** + * Levenshtein function courtesy of https://github.com/tad-lispy/node-damerau-levenshtein / https://www.npmjs.com/package/damerau-levenshtein + */ + function levenshtein(__this, that, limit) { + + var thisLength = __this.length, + thatLength = that.length, + matrix = []; + + // If the limit is not defined it will be calculate from this and that args. + limit = (limit || ((thatLength > thisLength ? thatLength : thisLength)))+1; + + for (var i = 0; i < limit; i++) { + matrix[i] = [i]; + matrix[i].length = limit; + } + for (i = 0; i < limit; i++) { + matrix[0][i] = i; + } + + if (Math.abs(thisLength - thatLength) > (limit || 100)){ + return prepare (limit || 100); + } + if (thisLength === 0){ + return prepare (thatLength); + } + if (thatLength === 0){ + return prepare (thisLength); + } + + // Calculate matrix. + var j, this_i, that_j, cost, min, t; + for (i = 1; i <= thisLength; ++i) { + this_i = __this[i-1]; + + // Step 4 + for (j = 1; j <= thatLength; ++j) { + // Check the jagged ld total so far + if (i === j && matrix[i][j] > 4) return prepare (thisLength); + + that_j = that[j-1]; + cost = (this_i === that_j) ? 0 : 1; // Step 5 + // Calculate the minimum (much faster than Math.min(...)). + min = matrix[i - 1][j ] + 1; // Deletion. + if ((t = matrix[i ][j - 1] + 1 ) < min) min = t; // Insertion. + if ((t = matrix[i - 1][j - 1] + cost) < min) min = t; // Substitution. + + // Update matrix. + matrix[i][j] = (i > 1 && j > 1 && this_i === that[j-2] && __this[i-2] === that_j && (t = matrix[i-2][j-2]+cost) < min) ? t : min; // Transposition. + } + } + + return prepare (matrix[thisLength][thatLength]); + + /** + * + */ + function prepare(steps) { + var length = Math.max(thisLength, thatLength) + var relative = length === 0 + ? 0 + : (steps / length); + var similarity = 1 - relative + return { + steps: steps, + relative: relative, + similarity: similarity + }; + } + } + + fuzzySearch = function(searchVal, data, initial) { + // If no searchVal has been defined then return all rows. + if(searchVal === undefined || searchVal.length === 0) { + return { + pass: true, + score: '' + } + } + + var threshold = initial.threshold !== undefined ? initial.threshold : 0.5; + + // Split the searchVal into individual words. + var splitSearch = searchVal.split(/[^(a-z|A-Z|0-9)]/g); + + // Array to keep scores in + var highestCollated = []; + + // Remove any empty words or spaces + for(var x = 0; x < splitSearch.length; x++) { + if (splitSearch[x].length === 0 || splitSearch[x] === ' ') { + splitSearch.splice(x, 1); + x--; + } + // Aside - Add to the score collection if not done so yet for this search word + else if (highestCollated.length < splitSearch.length) { + highestCollated.push({pass: false, score: 0}); + } + } + + // Going to check each cell for potential matches + for(var i = 0; i < data.length; i++) { + // Convert all data points to lower case fo insensitive sorting + data[i] = data[i].toLowerCase(); + + // Split the data into individual words + var splitData = data[i].split(/[^(a-z|A-Z|0-9)]/g); + + // Remove any empty words or spaces + for (var y = 0; y < splitData.length; y++){ + if(splitData[y].length === 0 || splitData[y] === ' ') { + splitData.splice(y, 1); + x--; + } + } + + // Check each search term word + for(var x = 0; x < splitSearch.length; x++) { + // Reset highest score + var highest = { + pass: undefined, + score: 0 + }; + + // Against each word in the cell + for (var y = 0; y < splitData.length; y++){ + // If this search Term word is the beginning of the word in the cell we want to pass this word + if(splitData[y].indexOf(splitSearch[x]) === 0){ + highest = { + pass: true, + score: splitSearch[x].length / splitData[y].length + }; + } + + // Get the levenshtein similarity score for the two words + var steps = levenshtein(splitSearch[x], splitData[y]).similarity; + + // If the levenshtein similarity score is better than a previous one for the search word then let's store it + if(steps > highest.score) { + highest.score = steps; + } + } + + // If this cell has a higher scoring word than previously found to the search term in the row, store it + if(highestCollated[x].score < highest.score || highest.pass) { + highestCollated[x] = { + pass: highest.pass || highestCollated.pass ? true : highest.score > threshold, + score: highest.score + }; + } + } + } + + // Check that all of the rows have a score greater than 0.5 + for(var i = 0; i < highestCollated.length; i++) { + if(!highestCollated[i].pass) { + return { + pass: false, + score: Math.round(((highestCollated.reduce((a,b) => a+b.score, 0) / highestCollated.length) * 100)) + "%" + }; + } + } + + // If we get to here, all scores greater than 0.5 so display the row + return { + pass: true, + score: Math.round(((highestCollated.reduce((a,b) => a+b.score, 0) / highestCollated.length) * 100)) + "%" + }; + } + + $.fn.dataTable.ext.search.push( + function( settings, data, dataIndex ) { + var initial = settings.oInit.fuzzySearch; + // If fuzzy searching has not been implemented then pass all rows for this function + if (settings.aoData[dataIndex]._fuzzySearch !== undefined) { + // Read score to set the cell content and sort data + var score = settings.aoData[dataIndex]._fuzzySearch.score; + settings.aoData[dataIndex].anCells[initial.rankColumn].innerHTML = score; + + // Remove '%' from the end of the score so can sort on a number + settings.aoData[dataIndex]._aSortData[initial.rankColumn] = +score.substring(0, score.length - 1); + + // Return the value for the pass as decided by the fuzzySearch function + return settings.aoData[dataIndex]._fuzzySearch.pass; + } + else { + settings.aoData[dataIndex].anCells[initial.rankColumn].innerHTML = ''; + settings.aoData[dataIndex]._aSortData[initial.rankColumn] = ''; + } + return true; + } + ); + + $(document).on('init.dt', function(e, settings) { + let api = new $.fn.dataTable.Api(settings); + var initial = api.init().fuzzySearch; + + // If this is set then fuzzy searching is enabled on the table. + if (initial) { + // Find the input element + let input = $('div.dataTables_filter input', api.table().container()) + + let fontBold = {'font-weight': '600', 'background-color': 'rgba(255,255,255,0.1)'}; + let fontNormal = {'font-weight': '500', 'background-color': 'transparent',}; + let toggleCSS = { + 'border': 'none', + 'background': 'none', + 'font-size': '100%', + 'width': '50%', + 'display': 'inline-block', + 'color': 'white', + 'cursor': 'pointer', + 'padding': '0.5em' + } + + // Only going to set the toggle if it is enabled + let toggle, tooltip, exact, fuzzy, label; + if(initial.toggleSmart) { + toggle =$('') + .insertAfter(input) + .css({ + 'border': 'none', + 'background': 'none', + 'position': 'absolute', + 'right': '0px', + 'top': '4px', + 'cursor': 'pointer', + 'color': '#3b5e99', + 'margin-top': '1px' + }); + exact =$('') + .insertAfter(input) + .css(toggleCSS) + .css(fontBold) + .attr('highlighted', true); + fuzzy =$('') + .insertAfter(input) + .css(toggleCSS); + input.css({ + 'padding-right': '30px' + }); + label = $('
Fuzzy searching is used in search engines and databases to perform searches that will match results that are not necessarily exactly the same as the search + term. This allows spelling mistakes and typos to be accounted for. It also allows small changes in dialect not to affect search results. A commonly used example is + for surname searching. "Smith" and "Smythe" are pronounced the same way, but using conventional searching typing "Smith" would not return "Smythe".
+This plug-in adds fuzzy search functionality to datatables. It does this through a combination of exact matching and the damerau-levenshtein algorithm. There are four initialisation options that are associated with this + plugin.
+fuzzySearch.toggleSmart
allows the searching to be changed from exact matching to fuzzy searching.fuzzySearch.rankColumn
allows the % match to be set in a column within the datatable. Some examples of use cases could be to display the value
+ to the user. or to hide the column and order based on it - as a search engine would.fuzzySearch.threshold
allows the value of similarity that is required from the damerau-levenshtein function to display the row to be
+ changed.fuzzySearch.returnSearch
allows the option for searching to only occur when the enter key is pressed.Name | +Position | +Office | +Age | +Start date | +Salary | +
---|---|---|---|---|---|
Tiger Nixon | +System Architect | +Edinburgh | +61 | +2011/04/25 | +$320,800 | +
Garrett Winters | +Accountant | +Tokyo | +63 | +2011/07/25 | +$170,750 | +
Ashton Cox | +Junior Technical Author | +San Francisco | +66 | +2009/01/12 | +$86,000 | +
Cedric Kelly | +Senior Javascript Developer | +Edinburgh | +22 | +2012/03/29 | +$433,060 | +
Airi Satou | +Accountant | +Tokyo | +33 | +2008/11/28 | +$162,700 | +
Brielle Williamson | +Integration Specialist | +New York | +61 | +2012/12/02 | +$372,000 | +
Herrod Chandler | +Sales Assistant | +San Francisco | +59 | +2012/08/06 | +$137,500 | +
Rhona Davidson | +Integration Specialist | +Tokyo | +55 | +2010/10/14 | +$327,900 | +
Colleen Hurst | +Javascript Developer | +San Francisco | +39 | +2009/09/15 | +$205,500 | +
Sonya Frost | +Software Engineer | +Edinburgh | +23 | +2008/12/13 | +$103,600 | +
Jena Gaines | +Office Manager | +London | +30 | +2008/12/19 | +$90,560 | +
Quinn Flynn | +Support Lead | +Edinburgh | +22 | +2013/03/03 | +$342,000 | +
Charde Marshall | +Regional Director | +San Francisco | +36 | +2008/10/16 | +$470,600 | +
Haley Kennedy | +Senior Marketing Designer | +London | +43 | +2012/12/18 | +$313,500 | +
Tatyana Fitzpatrick | +Regional Director | +London | +19 | +2010/03/17 | +$385,750 | +
Michael Silva | +Marketing Designer | +London | +66 | +2012/11/27 | +$198,500 | +
Paul Byrd | +Chief Financial Officer (CFO) | +New York | +64 | +2010/06/09 | +$725,000 | +
Gloria Little | +Systems Administrator | +New York | +59 | +2009/04/10 | +$237,500 | +
Bradley Greer | +Software Engineer | +London | +41 | +2012/10/13 | +$132,000 | +
Dai Rios | +Personnel Lead | +Edinburgh | +35 | +2012/09/26 | +$217,500 | +
Jenette Caldwell | +Development Lead | +New York | +30 | +2011/09/03 | +$345,000 | +
Yuri Berry | +Chief Marketing Officer (CMO) | +New York | +40 | +2009/06/25 | +$675,000 | +
Caesar Vance | +Pre-Sales Support | +New York | +21 | +2011/12/12 | +$106,450 | +
Doris Wilder | +Sales Assistant | +Sydney | +23 | +2010/09/20 | +$85,600 | +
Angelica Ramos | +Chief Executive Officer (CEO) | +London | +47 | +2009/10/09 | +$1,200,000 | +
Gavin Joyce | +Developer | +Edinburgh | +42 | +2010/12/22 | +$92,575 | +
Jennifer Chang | +Regional Director | +Singapore | +28 | +2010/11/14 | +$357,650 | +
Brenden Wagner | +Software Engineer | +San Francisco | +28 | +2011/06/07 | +$206,850 | +
Fiona Green | +Chief Operating Officer (COO) | +San Francisco | +48 | +2010/03/11 | +$850,000 | +
Shou Itou | +Regional Marketing | +Tokyo | +20 | +2011/08/14 | +$163,000 | +
Michelle House | +Integration Specialist | +Sydney | +37 | +2011/06/02 | +$95,400 | +
Suki Burks | +Developer | +London | +53 | +2009/10/22 | +$114,500 | +
Prescott Bartlett | +Technical Author | +London | +27 | +2011/05/07 | +$145,000 | +
Gavin Cortez | +Team Leader | +San Francisco | +22 | +2008/10/26 | +$235,500 | +
Martena Mccray | +Post-Sales support | +Edinburgh | +46 | +2011/03/09 | +$324,050 | +
Unity Butler | +Marketing Designer | +San Francisco | +47 | +2009/12/09 | +$85,675 | +
Howard Hatfield | +Office Manager | +San Francisco | +51 | +2008/12/16 | +$164,500 | +
Hope Fuentes | +Secretary | +San Francisco | +41 | +2010/02/12 | +$109,850 | +
Vivian Harrell | +Financial Controller | +San Francisco | +62 | +2009/02/14 | +$452,500 | +
Timothy Mooney | +Office Manager | +London | +37 | +2008/12/11 | +$136,200 | +
Jackson Bradshaw | +Director | +New York | +65 | +2008/09/26 | +$645,750 | +
Olivia Liang | +Support Engineer | +Singapore | +64 | +2011/02/03 | +$234,500 | +
Bruno Nash | +Software Engineer | +London | +38 | +2011/05/03 | +$163,500 | +
Sakura Yamamoto | +Support Engineer | +Tokyo | +37 | +2009/08/19 | +$139,575 | +
Thor Walton | +Developer | +New York | +61 | +2013/08/11 | +$98,540 | +
Finn Camacho | +Support Engineer | +San Francisco | +47 | +2009/07/07 | +$87,500 | +
Serge Baldwin | +Data Coordinator | +Singapore | +64 | +2012/04/09 | +$138,575 | +
Zenaida Frank | +Software Engineer | +New York | +63 | +2010/01/04 | +$125,250 | +
Zorita Serrano | +Software Engineer | +San Francisco | +56 | +2012/06/01 | +$115,000 | +
Jennifer Acosta | +Junior Javascript Developer | +Edinburgh | +43 | +2013/02/01 | +$75,650 | +
Cara Stevens | +Sales Assistant | +New York | +46 | +2011/12/06 | +$145,600 | +
Hermione Butler | +Regional Director | +London | +47 | +2011/03/21 | +$356,250 | +
Lael Greer | +Systems Administrator | +London | +21 | +2009/02/27 | +$103,500 | +
Jonas Alexander | +Developer | +San Francisco | +30 | +2010/07/14 | +$86,500 | +
Shad Decker | +Regional Director | +Edinburgh | +51 | +2008/11/13 | +$183,000 | +
Michael Bruce | +Javascript Developer | +Singapore | +29 | +2011/06/27 | +$183,000 | +
Donna Snider | +Customer Support | +New York | +27 | +2011/01/25 | +$112,000 | +
Name | +Position | +Office | +Age | +Start date | +Salary | +
The Javascript shown below is used to initialise the table shown in this example:
$(document).ready(function() {
+ var table = $('#example').DataTable({
+ fuzzySearch: true
+ });
+} );
+ Fuzzy searching is used in search engines and databases to perform searches that will match results that are not necessarily exactly the same as the search + term. This allows spelling mistakes and typos to be accounted for. It also allows small changes in dialect not to affect search results. A commonly used example is + for surname searching. "Smith" and "Smythe" are pronounced the same way, but using conventional searching typing "Smith" would not return "Smythe".
+This plug-in adds fuzzy search functionality to datatables. It does this through a combination of exact matching and the damerau-levenshtein algorithm. There are four initialisation options that are associated with this + plugin.
+fuzzySearch.toggleSmart
allows the searching to be changed from exact matching to fuzzy searching.fuzzySearch.rankColumn
allows the % match to be set in a column within the datatable. Some examples of use cases could be to display the value
+ to the user. or to hide the column and order based on it - as a search engine would.fuzzySearch.threshold
allows the value of similarity that is required from the damerau-levenshtein function to display the row to be
+ changed.fuzzySearch.returnSearch
allows the option for searching to only occur when the enter key is pressed.Name | +Position | +Office | +Age | +Start date | +Salary | +Similarity | +
---|---|---|---|---|---|---|
Tiger Nixon | +System Architect | +Edinburgh | +61 | +2011/04/25 | +$320,800 | ++ |
Garrett Winters | +Accountant | +Tokyo | +63 | +2011/07/25 | +$170,750 | ++ |
Ashton Cox | +Junior Technical Author | +San Francisco | +66 | +2009/01/12 | +$86,000 | ++ |
Cedric Kelly | +Senior Javascript Developer | +Edinburgh | +22 | +2012/03/29 | +$433,060 | ++ |
Airi Satou | +Accountant | +Tokyo | +33 | +2008/11/28 | +$162,700 | ++ |
Brielle Williamson | +Integration Specialist | +New York | +61 | +2012/12/02 | +$372,000 | ++ |
Herrod Chandler | +Sales Assistant | +San Francisco | +59 | +2012/08/06 | +$137,500 | ++ |
Rhona Davidson | +Integration Specialist | +Tokyo | +55 | +2010/10/14 | +$327,900 | ++ |
Colleen Hurst | +Javascript Developer | +San Francisco | +39 | +2009/09/15 | +$205,500 | ++ |
Sonya Frost | +Software Engineer | +Edinburgh | +23 | +2008/12/13 | +$103,600 | ++ |
Jena Gaines | +Office Manager | +London | +30 | +2008/12/19 | +$90,560 | ++ |
Quinn Flynn | +Support Lead | +Edinburgh | +22 | +2013/03/03 | +$342,000 | ++ |
Charde Marshall | +Regional Director | +San Francisco | +36 | +2008/10/16 | +$470,600 | ++ |
Haley Kennedy | +Senior Marketing Designer | +London | +43 | +2012/12/18 | +$313,500 | ++ |
Tatyana Fitzpatrick | +Regional Director | +London | +19 | +2010/03/17 | +$385,750 | ++ |
Michael Silva | +Marketing Designer | +London | +66 | +2012/11/27 | +$198,500 | ++ |
Paul Byrd | +Chief Financial Officer (CFO) | +New York | +64 | +2010/06/09 | +$725,000 | ++ |
Gloria Little | +Systems Administrator | +New York | +59 | +2009/04/10 | +$237,500 | ++ |
Bradley Greer | +Software Engineer | +London | +41 | +2012/10/13 | +$132,000 | ++ |
Dai Rios | +Personnel Lead | +Edinburgh | +35 | +2012/09/26 | +$217,500 | ++ |
Jenette Caldwell | +Development Lead | +New York | +30 | +2011/09/03 | +$345,000 | ++ |
Yuri Berry | +Chief Marketing Officer (CMO) | +New York | +40 | +2009/06/25 | +$675,000 | ++ |
Caesar Vance | +Pre-Sales Support | +New York | +21 | +2011/12/12 | +$106,450 | ++ |
Doris Wilder | +Sales Assistant | +Sydney | +23 | +2010/09/20 | +$85,600 | ++ |
Angelica Ramos | +Chief Executive Officer (CEO) | +London | +47 | +2009/10/09 | +$1,200,000 | ++ |
Gavin Joyce | +Developer | +Edinburgh | +42 | +2010/12/22 | +$92,575 | ++ |
Jennifer Chang | +Regional Director | +Singapore | +28 | +2010/11/14 | +$357,650 | ++ |
Brenden Wagner | +Software Engineer | +San Francisco | +28 | +2011/06/07 | +$206,850 | ++ |
Fiona Green | +Chief Operating Officer (COO) | +San Francisco | +48 | +2010/03/11 | +$850,000 | ++ |
Shou Itou | +Regional Marketing | +Tokyo | +20 | +2011/08/14 | +$163,000 | ++ |
Michelle House | +Integration Specialist | +Sydney | +37 | +2011/06/02 | +$95,400 | ++ |
Suki Burks | +Developer | +London | +53 | +2009/10/22 | +$114,500 | ++ |
Prescott Bartlett | +Technical Author | +London | +27 | +2011/05/07 | +$145,000 | ++ |
Gavin Cortez | +Team Leader | +San Francisco | +22 | +2008/10/26 | +$235,500 | ++ |
Martena Mccray | +Post-Sales support | +Edinburgh | +46 | +2011/03/09 | +$324,050 | ++ |
Unity Butler | +Marketing Designer | +San Francisco | +47 | +2009/12/09 | +$85,675 | ++ |
Howard Hatfield | +Office Manager | +San Francisco | +51 | +2008/12/16 | +$164,500 | ++ |
Hope Fuentes | +Secretary | +San Francisco | +41 | +2010/02/12 | +$109,850 | ++ |
Vivian Harrell | +Financial Controller | +San Francisco | +62 | +2009/02/14 | +$452,500 | ++ |
Timothy Mooney | +Office Manager | +London | +37 | +2008/12/11 | +$136,200 | ++ |
Jackson Bradshaw | +Director | +New York | +65 | +2008/09/26 | +$645,750 | ++ |
Olivia Liang | +Support Engineer | +Singapore | +64 | +2011/02/03 | +$234,500 | ++ |
Bruno Nash | +Software Engineer | +London | +38 | +2011/05/03 | +$163,500 | ++ |
Sakura Yamamoto | +Support Engineer | +Tokyo | +37 | +2009/08/19 | +$139,575 | ++ |
Thor Walton | +Developer | +New York | +61 | +2013/08/11 | +$98,540 | ++ |
Finn Camacho | +Support Engineer | +San Francisco | +47 | +2009/07/07 | +$87,500 | ++ |
Serge Baldwin | +Data Coordinator | +Singapore | +64 | +2012/04/09 | +$138,575 | ++ |
Zenaida Frank | +Software Engineer | +New York | +63 | +2010/01/04 | +$125,250 | ++ |
Zorita Serrano | +Software Engineer | +San Francisco | +56 | +2012/06/01 | +$115,000 | ++ |
Jennifer Acosta | +Junior Javascript Developer | +Edinburgh | +43 | +2013/02/01 | +$75,650 | ++ |
Cara Stevens | +Sales Assistant | +New York | +46 | +2011/12/06 | +$145,600 | ++ |
Hermione Butler | +Regional Director | +London | +47 | +2011/03/21 | +$356,250 | ++ |
Lael Greer | +Systems Administrator | +London | +21 | +2009/02/27 | +$103,500 | ++ |
Jonas Alexander | +Developer | +San Francisco | +30 | +2010/07/14 | +$86,500 | ++ |
Shad Decker | +Regional Director | +Edinburgh | +51 | +2008/11/13 | +$183,000 | ++ |
Michael Bruce | +Javascript Developer | +Singapore | +29 | +2011/06/27 | +$183,000 | ++ |
Donna Snider | +Customer Support | +New York | +27 | +2011/01/25 | +$112,000 | ++ |
Name | +Position | +Office | +Age | +Start date | +Salary | +Similarity | +
The Javascript shown below is used to initialise the table shown in this example:
$(document).ready(function() {
+ var table = $('#example').DataTable({
+ fuzzySearch: {
+ toggleSmart: true,
+ rankColumn: 6,
+ threshold: 0.5,
+ returnSearch: false
+ }
+ });
+} );
+ Fuzzy searching is used in search engines and databases to perform searches that will match results that are not necessarily exactly the same as the search + term. This allows spelling mistakes and typos to be accounted for. It also allows small changes in dialect not to affect search results. A commonly used example is + for surname searching. "Smith" and "Smythe" are pronounced the same way, but using conventional searching typing "Smith" would not return "Smythe".
+This plug-in adds fuzzy search functionality to datatables. It does this through a combination of exact matching and the damerau-levenshtein algorithm. There are four initialisation options that are associated with this + plugin.
+fuzzySearch.toggleSmart
allows the searching to be changed from exact matching to fuzzy searching.fuzzySearch.rankColumn
allows the % match to be set in a column within the datatable. Some examples of use cases could be to display the value
+ to the user. or to hide the column and order based on it - as a search engine would.fuzzySearch.threshold
allows the value of similarity that is required from the damerau-levenshtein function to display the row to be
+ changed.fuzzySearch.returnSearch
allows the option for searching to only occur when the enter key is pressed.Name | +Position | +Office | +Age | +Start date | +Salary | +
---|---|---|---|---|---|
Tiger Nixon | +System Architect | +Edinburgh | +61 | +2011/04/25 | +$320,800 | +
Garrett Winters | +Accountant | +Tokyo | +63 | +2011/07/25 | +$170,750 | +
Ashton Cox | +Junior Technical Author | +San Francisco | +66 | +2009/01/12 | +$86,000 | +
Cedric Kelly | +Senior Javascript Developer | +Edinburgh | +22 | +2012/03/29 | +$433,060 | +
Airi Satou | +Accountant | +Tokyo | +33 | +2008/11/28 | +$162,700 | +
Brielle Williamson | +Integration Specialist | +New York | +61 | +2012/12/02 | +$372,000 | +
Herrod Chandler | +Sales Assistant | +San Francisco | +59 | +2012/08/06 | +$137,500 | +
Rhona Davidson | +Integration Specialist | +Tokyo | +55 | +2010/10/14 | +$327,900 | +
Colleen Hurst | +Javascript Developer | +San Francisco | +39 | +2009/09/15 | +$205,500 | +
Sonya Frost | +Software Engineer | +Edinburgh | +23 | +2008/12/13 | +$103,600 | +
Jena Gaines | +Office Manager | +London | +30 | +2008/12/19 | +$90,560 | +
Quinn Flynn | +Support Lead | +Edinburgh | +22 | +2013/03/03 | +$342,000 | +
Charde Marshall | +Regional Director | +San Francisco | +36 | +2008/10/16 | +$470,600 | +
Haley Kennedy | +Senior Marketing Designer | +London | +43 | +2012/12/18 | +$313,500 | +
Tatyana Fitzpatrick | +Regional Director | +London | +19 | +2010/03/17 | +$385,750 | +
Michael Silva | +Marketing Designer | +London | +66 | +2012/11/27 | +$198,500 | +
Paul Byrd | +Chief Financial Officer (CFO) | +New York | +64 | +2010/06/09 | +$725,000 | +
Gloria Little | +Systems Administrator | +New York | +59 | +2009/04/10 | +$237,500 | +
Bradley Greer | +Software Engineer | +London | +41 | +2012/10/13 | +$132,000 | +
Dai Rios | +Personnel Lead | +Edinburgh | +35 | +2012/09/26 | +$217,500 | +
Jenette Caldwell | +Development Lead | +New York | +30 | +2011/09/03 | +$345,000 | +
Yuri Berry | +Chief Marketing Officer (CMO) | +New York | +40 | +2009/06/25 | +$675,000 | +
Caesar Vance | +Pre-Sales Support | +New York | +21 | +2011/12/12 | +$106,450 | +
Doris Wilder | +Sales Assistant | +Sydney | +23 | +2010/09/20 | +$85,600 | +
Angelica Ramos | +Chief Executive Officer (CEO) | +London | +47 | +2009/10/09 | +$1,200,000 | +
Gavin Joyce | +Developer | +Edinburgh | +42 | +2010/12/22 | +$92,575 | +
Jennifer Chang | +Regional Director | +Singapore | +28 | +2010/11/14 | +$357,650 | +
Brenden Wagner | +Software Engineer | +San Francisco | +28 | +2011/06/07 | +$206,850 | +
Fiona Green | +Chief Operating Officer (COO) | +San Francisco | +48 | +2010/03/11 | +$850,000 | +
Shou Itou | +Regional Marketing | +Tokyo | +20 | +2011/08/14 | +$163,000 | +
Michelle House | +Integration Specialist | +Sydney | +37 | +2011/06/02 | +$95,400 | +
Suki Burks | +Developer | +London | +53 | +2009/10/22 | +$114,500 | +
Prescott Bartlett | +Technical Author | +London | +27 | +2011/05/07 | +$145,000 | +
Gavin Cortez | +Team Leader | +San Francisco | +22 | +2008/10/26 | +$235,500 | +
Martena Mccray | +Post-Sales support | +Edinburgh | +46 | +2011/03/09 | +$324,050 | +
Unity Butler | +Marketing Designer | +San Francisco | +47 | +2009/12/09 | +$85,675 | +
Howard Hatfield | +Office Manager | +San Francisco | +51 | +2008/12/16 | +$164,500 | +
Hope Fuentes | +Secretary | +San Francisco | +41 | +2010/02/12 | +$109,850 | +
Vivian Harrell | +Financial Controller | +San Francisco | +62 | +2009/02/14 | +$452,500 | +
Timothy Mooney | +Office Manager | +London | +37 | +2008/12/11 | +$136,200 | +
Jackson Bradshaw | +Director | +New York | +65 | +2008/09/26 | +$645,750 | +
Olivia Liang | +Support Engineer | +Singapore | +64 | +2011/02/03 | +$234,500 | +
Bruno Nash | +Software Engineer | +London | +38 | +2011/05/03 | +$163,500 | +
Sakura Yamamoto | +Support Engineer | +Tokyo | +37 | +2009/08/19 | +$139,575 | +
Thor Walton | +Developer | +New York | +61 | +2013/08/11 | +$98,540 | +
Finn Camacho | +Support Engineer | +San Francisco | +47 | +2009/07/07 | +$87,500 | +
Serge Baldwin | +Data Coordinator | +Singapore | +64 | +2012/04/09 | +$138,575 | +
Zenaida Frank | +Software Engineer | +New York | +63 | +2010/01/04 | +$125,250 | +
Zorita Serrano | +Software Engineer | +San Francisco | +56 | +2012/06/01 | +$115,000 | +
Jennifer Acosta | +Junior Javascript Developer | +Edinburgh | +43 | +2013/02/01 | +$75,650 | +
Cara Stevens | +Sales Assistant | +New York | +46 | +2011/12/06 | +$145,600 | +
Hermione Butler | +Regional Director | +London | +47 | +2011/03/21 | +$356,250 | +
Lael Greer | +Systems Administrator | +London | +21 | +2009/02/27 | +$103,500 | +
Jonas Alexander | +Developer | +San Francisco | +30 | +2010/07/14 | +$86,500 | +
Shad Decker | +Regional Director | +Edinburgh | +51 | +2008/11/13 | +$183,000 | +
Michael Bruce | +Javascript Developer | +Singapore | +29 | +2011/06/27 | +$183,000 | +
Donna Snider | +Customer Support | +New York | +27 | +2011/01/25 | +$112,000 | +
Name | +Position | +Office | +Age | +Start date | +Salary | +
The Javascript shown below is used to initialise the table shown in this example:
$(document).ready(function() {
+ var table = $('#example').DataTable({
+ fuzzySearch: {
+ toggleSmart: true,
+ rankColumn: 6,
+ threshold: 0.5,
+ returnSearch: false
+ }
+ });
+} );
+ Fuzzy searching is used in search engines and databases to perform searches that will match results that are not necessarily exactly the same as the search + term. This allows spelling mistakes and typos to be accounted for. It also allows small changes in dialect not to affect search results. A commonly used example is + for surname searching. "Smith" and "Smythe" are pronounced the same way, but using conventional searching typing "Smith" would not return "Smythe".
+This plug-in adds fuzzy search functionality to datatables. It does this through a combination of exact matching and the damerau-levenshtein algorithm. There are four initialisation options that are associated with this + plugin.
+fuzzySearch.toggleSmart
allows the searching to be changed from exact matching to fuzzy searching.fuzzySearch.rankColumn
allows the % match to be set in a column within the datatable. Some examples of use cases could be to display the value
+ to the user. or to hide the column and order based on it - as a search engine would.fuzzySearch.threshold
allows the value of similarity that is required from the damerau-levenshtein function to display the row to be
+ changed.fuzzySearch.returnSearch
allows the option for searching to only occur when the enter key is pressed.Name | +Position | +Office | +Age | +Start date | +Salary | +Similarity | +
---|---|---|---|---|---|---|
Tiger Nixon | +System Architect | +Edinburgh | +61 | +2011/04/25 | +$320,800 | ++ |
Garrett Winters | +Accountant | +Tokyo | +63 | +2011/07/25 | +$170,750 | ++ |
Ashton Cox | +Junior Technical Author | +San Francisco | +66 | +2009/01/12 | +$86,000 | ++ |
Cedric Kelly | +Senior Javascript Developer | +Edinburgh | +22 | +2012/03/29 | +$433,060 | ++ |
Airi Satou | +Accountant | +Tokyo | +33 | +2008/11/28 | +$162,700 | ++ |
Brielle Williamson | +Integration Specialist | +New York | +61 | +2012/12/02 | +$372,000 | ++ |
Herrod Chandler | +Sales Assistant | +San Francisco | +59 | +2012/08/06 | +$137,500 | ++ |
Rhona Davidson | +Integration Specialist | +Tokyo | +55 | +2010/10/14 | +$327,900 | ++ |
Colleen Hurst | +Javascript Developer | +San Francisco | +39 | +2009/09/15 | +$205,500 | ++ |
Sonya Frost | +Software Engineer | +Edinburgh | +23 | +2008/12/13 | +$103,600 | ++ |
Jena Gaines | +Office Manager | +London | +30 | +2008/12/19 | +$90,560 | ++ |
Quinn Flynn | +Support Lead | +Edinburgh | +22 | +2013/03/03 | +$342,000 | ++ |
Charde Marshall | +Regional Director | +San Francisco | +36 | +2008/10/16 | +$470,600 | ++ |
Haley Kennedy | +Senior Marketing Designer | +London | +43 | +2012/12/18 | +$313,500 | ++ |
Tatyana Fitzpatrick | +Regional Director | +London | +19 | +2010/03/17 | +$385,750 | ++ |
Michael Silva | +Marketing Designer | +London | +66 | +2012/11/27 | +$198,500 | ++ |
Paul Byrd | +Chief Financial Officer (CFO) | +New York | +64 | +2010/06/09 | +$725,000 | ++ |
Gloria Little | +Systems Administrator | +New York | +59 | +2009/04/10 | +$237,500 | ++ |
Bradley Greer | +Software Engineer | +London | +41 | +2012/10/13 | +$132,000 | ++ |
Dai Rios | +Personnel Lead | +Edinburgh | +35 | +2012/09/26 | +$217,500 | ++ |
Jenette Caldwell | +Development Lead | +New York | +30 | +2011/09/03 | +$345,000 | ++ |
Yuri Berry | +Chief Marketing Officer (CMO) | +New York | +40 | +2009/06/25 | +$675,000 | ++ |
Caesar Vance | +Pre-Sales Support | +New York | +21 | +2011/12/12 | +$106,450 | ++ |
Doris Wilder | +Sales Assistant | +Sydney | +23 | +2010/09/20 | +$85,600 | ++ |
Angelica Ramos | +Chief Executive Officer (CEO) | +London | +47 | +2009/10/09 | +$1,200,000 | ++ |
Gavin Joyce | +Developer | +Edinburgh | +42 | +2010/12/22 | +$92,575 | ++ |
Jennifer Chang | +Regional Director | +Singapore | +28 | +2010/11/14 | +$357,650 | ++ |
Brenden Wagner | +Software Engineer | +San Francisco | +28 | +2011/06/07 | +$206,850 | ++ |
Fiona Green | +Chief Operating Officer (COO) | +San Francisco | +48 | +2010/03/11 | +$850,000 | ++ |
Shou Itou | +Regional Marketing | +Tokyo | +20 | +2011/08/14 | +$163,000 | ++ |
Michelle House | +Integration Specialist | +Sydney | +37 | +2011/06/02 | +$95,400 | ++ |
Suki Burks | +Developer | +London | +53 | +2009/10/22 | +$114,500 | ++ |
Prescott Bartlett | +Technical Author | +London | +27 | +2011/05/07 | +$145,000 | ++ |
Gavin Cortez | +Team Leader | +San Francisco | +22 | +2008/10/26 | +$235,500 | ++ |
Martena Mccray | +Post-Sales support | +Edinburgh | +46 | +2011/03/09 | +$324,050 | ++ |
Unity Butler | +Marketing Designer | +San Francisco | +47 | +2009/12/09 | +$85,675 | ++ |
Howard Hatfield | +Office Manager | +San Francisco | +51 | +2008/12/16 | +$164,500 | ++ |
Hope Fuentes | +Secretary | +San Francisco | +41 | +2010/02/12 | +$109,850 | ++ |
Vivian Harrell | +Financial Controller | +San Francisco | +62 | +2009/02/14 | +$452,500 | ++ |
Timothy Mooney | +Office Manager | +London | +37 | +2008/12/11 | +$136,200 | ++ |
Jackson Bradshaw | +Director | +New York | +65 | +2008/09/26 | +$645,750 | ++ |
Olivia Liang | +Support Engineer | +Singapore | +64 | +2011/02/03 | +$234,500 | ++ |
Bruno Nash | +Software Engineer | +London | +38 | +2011/05/03 | +$163,500 | ++ |
Sakura Yamamoto | +Support Engineer | +Tokyo | +37 | +2009/08/19 | +$139,575 | ++ |
Thor Walton | +Developer | +New York | +61 | +2013/08/11 | +$98,540 | ++ |
Finn Camacho | +Support Engineer | +San Francisco | +47 | +2009/07/07 | +$87,500 | ++ |
Serge Baldwin | +Data Coordinator | +Singapore | +64 | +2012/04/09 | +$138,575 | ++ |
Zenaida Frank | +Software Engineer | +New York | +63 | +2010/01/04 | +$125,250 | ++ |
Zorita Serrano | +Software Engineer | +San Francisco | +56 | +2012/06/01 | +$115,000 | ++ |
Jennifer Acosta | +Junior Javascript Developer | +Edinburgh | +43 | +2013/02/01 | +$75,650 | ++ |
Cara Stevens | +Sales Assistant | +New York | +46 | +2011/12/06 | +$145,600 | ++ |
Hermione Butler | +Regional Director | +London | +47 | +2011/03/21 | +$356,250 | ++ |
Lael Greer | +Systems Administrator | +London | +21 | +2009/02/27 | +$103,500 | ++ |
Jonas Alexander | +Developer | +San Francisco | +30 | +2010/07/14 | +$86,500 | ++ |
Shad Decker | +Regional Director | +Edinburgh | +51 | +2008/11/13 | +$183,000 | ++ |
Michael Bruce | +Javascript Developer | +Singapore | +29 | +2011/06/27 | +$183,000 | ++ |
Donna Snider | +Customer Support | +New York | +27 | +2011/01/25 | +$112,000 | ++ |
Name | +Position | +Office | +Age | +Start date | +Salary | +Similarity | +
The Javascript shown below is used to initialise the table shown in this example:
$(document).ready(function() {
+ var table = $('#example').DataTable({
+ fuzzySearch: {
+ toggleSmart: true,
+ rankColumn: 6,
+ threshold: 0.5,
+ returnSearch: false
+ }
+ });
+} );
+ Fuzzy searching is used in search engines and databases to perform searches that will match results that are not necessarily exactly the same as the search + term. This allows spelling mistakes and typos to be accounted for. It also allows small changes in dialect not to affect search results. A commonly used example is + for surname searching. "Smith" and "Smythe" are pronounced the same way, but using conventional searching typing "Smith" would not return "Smythe".
+This plug-in adds fuzzy search functionality to datatables. It does this through a combination of exact matching and the damerau-levenshtein algorithm. There are four initialisation options that are associated with this + plugin.
+fuzzySearch.toggleSmart
allows the searching to be changed from exact matching to fuzzy searching.fuzzySearch.rankColumn
allows the % match to be set in a column within the datatable. Some examples of use cases could be to display the value
+ to the user. or to hide the column and order based on it - as a search engine would.fuzzySearch.threshold
allows the value of similarity that is required from the damerau-levenshtein function to display the row to be
+ changed.fuzzySearch.returnSearch
allows the option for searching to only occur when the enter key is pressed.Name | +Position | +Office | +Age | +Start date | +Salary | +Similarity | +
---|---|---|---|---|---|---|
Tiger Nixon | +System Architect | +Edinburgh | +61 | +2011/04/25 | +$320,800 | ++ |
Garrett Winters | +Accountant | +Tokyo | +63 | +2011/07/25 | +$170,750 | ++ |
Ashton Cox | +Junior Technical Author | +San Francisco | +66 | +2009/01/12 | +$86,000 | ++ |
Cedric Kelly | +Senior Javascript Developer | +Edinburgh | +22 | +2012/03/29 | +$433,060 | ++ |
Airi Satou | +Accountant | +Tokyo | +33 | +2008/11/28 | +$162,700 | ++ |
Brielle Williamson | +Integration Specialist | +New York | +61 | +2012/12/02 | +$372,000 | ++ |
Herrod Chandler | +Sales Assistant | +San Francisco | +59 | +2012/08/06 | +$137,500 | ++ |
Rhona Davidson | +Integration Specialist | +Tokyo | +55 | +2010/10/14 | +$327,900 | ++ |
Colleen Hurst | +Javascript Developer | +San Francisco | +39 | +2009/09/15 | +$205,500 | ++ |
Sonya Frost | +Software Engineer | +Edinburgh | +23 | +2008/12/13 | +$103,600 | ++ |
Jena Gaines | +Office Manager | +London | +30 | +2008/12/19 | +$90,560 | ++ |
Quinn Flynn | +Support Lead | +Edinburgh | +22 | +2013/03/03 | +$342,000 | ++ |
Charde Marshall | +Regional Director | +San Francisco | +36 | +2008/10/16 | +$470,600 | ++ |
Haley Kennedy | +Senior Marketing Designer | +London | +43 | +2012/12/18 | +$313,500 | ++ |
Tatyana Fitzpatrick | +Regional Director | +London | +19 | +2010/03/17 | +$385,750 | ++ |
Michael Silva | +Marketing Designer | +London | +66 | +2012/11/27 | +$198,500 | ++ |
Paul Byrd | +Chief Financial Officer (CFO) | +New York | +64 | +2010/06/09 | +$725,000 | ++ |
Gloria Little | +Systems Administrator | +New York | +59 | +2009/04/10 | +$237,500 | ++ |
Bradley Greer | +Software Engineer | +London | +41 | +2012/10/13 | +$132,000 | ++ |
Dai Rios | +Personnel Lead | +Edinburgh | +35 | +2012/09/26 | +$217,500 | ++ |
Jenette Caldwell | +Development Lead | +New York | +30 | +2011/09/03 | +$345,000 | ++ |
Yuri Berry | +Chief Marketing Officer (CMO) | +New York | +40 | +2009/06/25 | +$675,000 | ++ |
Caesar Vance | +Pre-Sales Support | +New York | +21 | +2011/12/12 | +$106,450 | ++ |
Doris Wilder | +Sales Assistant | +Sydney | +23 | +2010/09/20 | +$85,600 | ++ |
Angelica Ramos | +Chief Executive Officer (CEO) | +London | +47 | +2009/10/09 | +$1,200,000 | ++ |
Gavin Joyce | +Developer | +Edinburgh | +42 | +2010/12/22 | +$92,575 | ++ |
Jennifer Chang | +Regional Director | +Singapore | +28 | +2010/11/14 | +$357,650 | ++ |
Brenden Wagner | +Software Engineer | +San Francisco | +28 | +2011/06/07 | +$206,850 | ++ |
Fiona Green | +Chief Operating Officer (COO) | +San Francisco | +48 | +2010/03/11 | +$850,000 | ++ |
Shou Itou | +Regional Marketing | +Tokyo | +20 | +2011/08/14 | +$163,000 | ++ |
Michelle House | +Integration Specialist | +Sydney | +37 | +2011/06/02 | +$95,400 | ++ |
Suki Burks | +Developer | +London | +53 | +2009/10/22 | +$114,500 | ++ |
Prescott Bartlett | +Technical Author | +London | +27 | +2011/05/07 | +$145,000 | ++ |
Gavin Cortez | +Team Leader | +San Francisco | +22 | +2008/10/26 | +$235,500 | ++ |
Martena Mccray | +Post-Sales support | +Edinburgh | +46 | +2011/03/09 | +$324,050 | ++ |
Unity Butler | +Marketing Designer | +San Francisco | +47 | +2009/12/09 | +$85,675 | ++ |
Howard Hatfield | +Office Manager | +San Francisco | +51 | +2008/12/16 | +$164,500 | ++ |
Hope Fuentes | +Secretary | +San Francisco | +41 | +2010/02/12 | +$109,850 | ++ |
Vivian Harrell | +Financial Controller | +San Francisco | +62 | +2009/02/14 | +$452,500 | ++ |
Timothy Mooney | +Office Manager | +London | +37 | +2008/12/11 | +$136,200 | ++ |
Jackson Bradshaw | +Director | +New York | +65 | +2008/09/26 | +$645,750 | ++ |
Olivia Liang | +Support Engineer | +Singapore | +64 | +2011/02/03 | +$234,500 | ++ |
Bruno Nash | +Software Engineer | +London | +38 | +2011/05/03 | +$163,500 | ++ |
Sakura Yamamoto | +Support Engineer | +Tokyo | +37 | +2009/08/19 | +$139,575 | ++ |
Thor Walton | +Developer | +New York | +61 | +2013/08/11 | +$98,540 | ++ |
Finn Camacho | +Support Engineer | +San Francisco | +47 | +2009/07/07 | +$87,500 | ++ |
Serge Baldwin | +Data Coordinator | +Singapore | +64 | +2012/04/09 | +$138,575 | ++ |
Zenaida Frank | +Software Engineer | +New York | +63 | +2010/01/04 | +$125,250 | ++ |
Zorita Serrano | +Software Engineer | +San Francisco | +56 | +2012/06/01 | +$115,000 | ++ |
Jennifer Acosta | +Junior Javascript Developer | +Edinburgh | +43 | +2013/02/01 | +$75,650 | ++ |
Cara Stevens | +Sales Assistant | +New York | +46 | +2011/12/06 | +$145,600 | ++ |
Hermione Butler | +Regional Director | +London | +47 | +2011/03/21 | +$356,250 | ++ |
Lael Greer | +Systems Administrator | +London | +21 | +2009/02/27 | +$103,500 | ++ |
Jonas Alexander | +Developer | +San Francisco | +30 | +2010/07/14 | +$86,500 | ++ |
Shad Decker | +Regional Director | +Edinburgh | +51 | +2008/11/13 | +$183,000 | ++ |
Michael Bruce | +Javascript Developer | +Singapore | +29 | +2011/06/27 | +$183,000 | ++ |
Donna Snider | +Customer Support | +New York | +27 | +2011/01/25 | +$112,000 | ++ |
Name | +Position | +Office | +Age | +Start date | +Salary | +Similarity | +
The Javascript shown below is used to initialise the table shown in this example:
$(document).ready(function() {
+ var table = $('#example').DataTable({
+ fuzzySearch: {
+ toggleSmart: true,
+ rankColumn: 6,
+ threshold: 0.5,
+ returnSearch: false
+ }
+ });
+} );
+ Fuzzy searching is used in search engines and databases to perform searches that will match results that are not necessarily exactly the same as the search + term. This allows spelling mistakes and typos to be accounted for. It also allows small changes in dialect not to affect search results. A commonly used example is + for surname searching. "Smith" and "Smythe" are pronounced the same way, but using conventional searching typing "Smith" would not return "Smythe".
+This plug-in adds fuzzy search functionality to datatables. It does this through a combination of exact matching and the damerau-levenshtein algorithm. There are four initialisation options that are associated with this + plugin.
+fuzzySearch.toggleSmart
allows the searching to be changed from exact matching to fuzzy searching.fuzzySearch.rankColumn
allows the % match to be set in a column within the datatable. Some examples of use cases could be to display the value
+ to the user. or to hide the column and order based on it - as a search engine would.fuzzySearch.threshold
allows the value of similarity that is required from the damerau-levenshtein function to display the row to be
+ changed.fuzzySearch.returnSearch
allows the option for searching to only occur when the enter key is pressed.Name | +Position | +Office | +Age | +Start date | +Salary | +Similarity | +
---|---|---|---|---|---|---|
Tiger Nixon | +System Architect | +Edinburgh | +61 | +2011/04/25 | +$320,800 | ++ |
Garrett Winters | +Accountant | +Tokyo | +63 | +2011/07/25 | +$170,750 | ++ |
Ashton Cox | +Junior Technical Author | +San Francisco | +66 | +2009/01/12 | +$86,000 | ++ |
Cedric Kelly | +Senior Javascript Developer | +Edinburgh | +22 | +2012/03/29 | +$433,060 | ++ |
Airi Satou | +Accountant | +Tokyo | +33 | +2008/11/28 | +$162,700 | ++ |
Brielle Williamson | +Integration Specialist | +New York | +61 | +2012/12/02 | +$372,000 | ++ |
Herrod Chandler | +Sales Assistant | +San Francisco | +59 | +2012/08/06 | +$137,500 | ++ |
Rhona Davidson | +Integration Specialist | +Tokyo | +55 | +2010/10/14 | +$327,900 | ++ |
Colleen Hurst | +Javascript Developer | +San Francisco | +39 | +2009/09/15 | +$205,500 | ++ |
Sonya Frost | +Software Engineer | +Edinburgh | +23 | +2008/12/13 | +$103,600 | ++ |
Jena Gaines | +Office Manager | +London | +30 | +2008/12/19 | +$90,560 | ++ |
Quinn Flynn | +Support Lead | +Edinburgh | +22 | +2013/03/03 | +$342,000 | ++ |
Charde Marshall | +Regional Director | +San Francisco | +36 | +2008/10/16 | +$470,600 | ++ |
Haley Kennedy | +Senior Marketing Designer | +London | +43 | +2012/12/18 | +$313,500 | ++ |
Tatyana Fitzpatrick | +Regional Director | +London | +19 | +2010/03/17 | +$385,750 | ++ |
Michael Silva | +Marketing Designer | +London | +66 | +2012/11/27 | +$198,500 | ++ |
Paul Byrd | +Chief Financial Officer (CFO) | +New York | +64 | +2010/06/09 | +$725,000 | ++ |
Gloria Little | +Systems Administrator | +New York | +59 | +2009/04/10 | +$237,500 | ++ |
Bradley Greer | +Software Engineer | +London | +41 | +2012/10/13 | +$132,000 | ++ |
Dai Rios | +Personnel Lead | +Edinburgh | +35 | +2012/09/26 | +$217,500 | ++ |
Jenette Caldwell | +Development Lead | +New York | +30 | +2011/09/03 | +$345,000 | ++ |
Yuri Berry | +Chief Marketing Officer (CMO) | +New York | +40 | +2009/06/25 | +$675,000 | ++ |
Caesar Vance | +Pre-Sales Support | +New York | +21 | +2011/12/12 | +$106,450 | ++ |
Doris Wilder | +Sales Assistant | +Sydney | +23 | +2010/09/20 | +$85,600 | ++ |
Angelica Ramos | +Chief Executive Officer (CEO) | +London | +47 | +2009/10/09 | +$1,200,000 | ++ |
Gavin Joyce | +Developer | +Edinburgh | +42 | +2010/12/22 | +$92,575 | ++ |
Jennifer Chang | +Regional Director | +Singapore | +28 | +2010/11/14 | +$357,650 | ++ |
Brenden Wagner | +Software Engineer | +San Francisco | +28 | +2011/06/07 | +$206,850 | ++ |
Fiona Green | +Chief Operating Officer (COO) | +San Francisco | +48 | +2010/03/11 | +$850,000 | ++ |
Shou Itou | +Regional Marketing | +Tokyo | +20 | +2011/08/14 | +$163,000 | ++ |
Michelle House | +Integration Specialist | +Sydney | +37 | +2011/06/02 | +$95,400 | ++ |
Suki Burks | +Developer | +London | +53 | +2009/10/22 | +$114,500 | ++ |
Prescott Bartlett | +Technical Author | +London | +27 | +2011/05/07 | +$145,000 | ++ |
Gavin Cortez | +Team Leader | +San Francisco | +22 | +2008/10/26 | +$235,500 | ++ |
Martena Mccray | +Post-Sales support | +Edinburgh | +46 | +2011/03/09 | +$324,050 | ++ |
Unity Butler | +Marketing Designer | +San Francisco | +47 | +2009/12/09 | +$85,675 | ++ |
Howard Hatfield | +Office Manager | +San Francisco | +51 | +2008/12/16 | +$164,500 | ++ |
Hope Fuentes | +Secretary | +San Francisco | +41 | +2010/02/12 | +$109,850 | ++ |
Vivian Harrell | +Financial Controller | +San Francisco | +62 | +2009/02/14 | +$452,500 | ++ |
Timothy Mooney | +Office Manager | +London | +37 | +2008/12/11 | +$136,200 | ++ |
Jackson Bradshaw | +Director | +New York | +65 | +2008/09/26 | +$645,750 | ++ |
Olivia Liang | +Support Engineer | +Singapore | +64 | +2011/02/03 | +$234,500 | ++ |
Bruno Nash | +Software Engineer | +London | +38 | +2011/05/03 | +$163,500 | ++ |
Sakura Yamamoto | +Support Engineer | +Tokyo | +37 | +2009/08/19 | +$139,575 | ++ |
Thor Walton | +Developer | +New York | +61 | +2013/08/11 | +$98,540 | ++ |
Finn Camacho | +Support Engineer | +San Francisco | +47 | +2009/07/07 | +$87,500 | ++ |
Serge Baldwin | +Data Coordinator | +Singapore | +64 | +2012/04/09 | +$138,575 | ++ |
Zenaida Frank | +Software Engineer | +New York | +63 | +2010/01/04 | +$125,250 | ++ |
Zorita Serrano | +Software Engineer | +San Francisco | +56 | +2012/06/01 | +$115,000 | ++ |
Jennifer Acosta | +Junior Javascript Developer | +Edinburgh | +43 | +2013/02/01 | +$75,650 | ++ |
Cara Stevens | +Sales Assistant | +New York | +46 | +2011/12/06 | +$145,600 | ++ |
Hermione Butler | +Regional Director | +London | +47 | +2011/03/21 | +$356,250 | ++ |
Lael Greer | +Systems Administrator | +London | +21 | +2009/02/27 | +$103,500 | ++ |
Jonas Alexander | +Developer | +San Francisco | +30 | +2010/07/14 | +$86,500 | ++ |
Shad Decker | +Regional Director | +Edinburgh | +51 | +2008/11/13 | +$183,000 | ++ |
Michael Bruce | +Javascript Developer | +Singapore | +29 | +2011/06/27 | +$183,000 | ++ |
Donna Snider | +Customer Support | +New York | +27 | +2011/01/25 | +$112,000 | ++ |
Name | +Position | +Office | +Age | +Start date | +Salary | +Similarity | +
The Javascript shown below is used to initialise the table shown in this example:
$(document).ready(function() {
+ var table = $('#example').DataTable({
+ fuzzySearch: {
+ toggleSmart: true,
+ rankColumn: 6,
+ threshold: 0.5,
+ returnSearch: false
+ }
+ });
+} );
+