Closed dzg closed 2 years ago
I was able to accomplish this by changing src/SearchStrategies/LiteralSearchStrategy.js
to
function LiteralSearchStrategy() {
this.matches = function (str, crit) {
if (!str) return false
str = str.trim().toLowerCase()
crit = crit.trim().toLowerCase()
return str.indexOf(crit) >= 0
}
}
but I would vote for having this be a search option.
Thanks! Awesome plugin!
... or instead of a flag, it could be triggered when the search input begins/ends with "
... like a Google search...
I just realized this was already implemented in 2df6280 but it hasn't been compiled to /dest
yet
Is there any way to make this search for the entire input string, rather the words?
E.g., if I search for "let it roll", I get results for all posts which contain those 3 words, anywhere, in any order. I want to find posts which contain the actual string "let it roll".