X-Git-Url: http://git.roojs.org/?p=Pman.Core;a=blobdiff_plain;f=Pman.SearchTokenizer.js;h=8db0be1b8579dbfad2a4dac29c7e41c7d518e78a;hp=5a0c3c5c40cbfc845a35dd7bdc967208388d889c;hb=refs%2Fheads%2Fwip_alan_T5884_add_photo_to_report;hpb=1b80ef6feb97e397d726286e29dce9034331211c diff --git a/Pman.SearchTokenizer.js b/Pman.SearchTokenizer.js index 5a0c3c5c..8db0be1b 100644 --- a/Pman.SearchTokenizer.js +++ b/Pman.SearchTokenizer.js @@ -49,6 +49,10 @@ Pman.SearchTokenizer.prototype = { } } + // sort tokens longest first.. + + + // should not get here... return this.tokens; }, @@ -116,7 +120,7 @@ Pman.SearchTokenizer.prototype = { return; } } - this.tokens.push( { type : 's' , v : s }); + this.tokens.push( { type : 's' , v : s, q: q }); }, getChar : function ()