var reg = new RegExp('\\b'+subquery+'\\b', 'gi');
//var reg = new RegExp('\\b(' + subquery + ')\\b');
var result;
while((result = reg.exec(pageContent)) !== null) {
matchesWithLength.push({
match: result.index,
matchLength: subqueryLen,
skipped: false
});
}
Wednesday, 8 November 2017
Match Against MariaDB MySQL
To take advantage of Full text indexing on MariaDB 10, I need to use this new "MATCH AGAINST" syntax in the sql string.
I think it would be really cool if, for certain columns only, I could override linq-to-nhibernate to change the sql it generates when I use
Who can give me some general directions on how to get started?
| |||
add a comment
|
This will get you a very simple
MATCH ... AGAINST clause. If you want to get more complex (more arguments, specifying the search modifier), you'll have to make some bigger changes. Hopefully this will get you started though:
Again, this won't help if you have more complicated requirements. But hopefully this is at least a good starting point.
In case anyone is curious about how to make this support more complex scenarios, here are the problems I think you'd run into:
|
Subscribe to:
Posts (Atom)