|
|
@ -36,11 +36,7 @@ app.Searcher = ->
|
|
|
|
|
|
|
|
|
|
|
|
_match = @match.bind(@)
|
|
|
|
_match = @match.bind(@)
|
|
|
|
@match = =>
|
|
|
|
@match = =>
|
|
|
|
if @matcher
|
|
|
|
console.timeEnd @matcher.name if @matcher
|
|
|
|
console.timeEnd @matcher.name
|
|
|
|
|
|
|
|
if @matcher.name is 'exactMatch'
|
|
|
|
|
|
|
|
for entries, score in @scoreMap by -1 when entries
|
|
|
|
|
|
|
|
console.log '' + score + ': ' + entries.map((entry) -> entry.text).join("\n ")
|
|
|
|
|
|
|
|
_match()
|
|
|
|
_match()
|
|
|
|
|
|
|
|
|
|
|
|
_setupMatcher = @setupMatcher.bind(@)
|
|
|
|
_setupMatcher = @setupMatcher.bind(@)
|
|
|
@ -51,8 +47,8 @@ app.Searcher = ->
|
|
|
|
_end = @end.bind(@)
|
|
|
|
_end = @end.bind(@)
|
|
|
|
@end = ->
|
|
|
|
@end = ->
|
|
|
|
console.log "Results: #{@totalResults}"
|
|
|
|
console.log "Results: #{@totalResults}"
|
|
|
|
console.groupEnd()
|
|
|
|
|
|
|
|
console.timeEnd 'Total'
|
|
|
|
console.timeEnd 'Total'
|
|
|
|
|
|
|
|
console.groupEnd()
|
|
|
|
_end()
|
|
|
|
_end()
|
|
|
|
|
|
|
|
|
|
|
|
_kill = @kill.bind(@)
|
|
|
|
_kill = @kill.bind(@)
|
|
|
@ -66,6 +62,7 @@ app.Searcher = ->
|
|
|
|
|
|
|
|
|
|
|
|
return
|
|
|
|
return
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
$.extend(app.Searcher, _super)
|
|
|
|
_proto.constructor = app.Searcher
|
|
|
|
_proto.constructor = app.Searcher
|
|
|
|
app.Searcher.prototype = _proto
|
|
|
|
app.Searcher.prototype = _proto
|
|
|
|
|
|
|
|
|
|
|
|