Search hangs when searching a repeated substring with wildcard
See original GitHub issueSee the jsFiddle here: https://jsfiddle.net/bwe0f44g/
var idx = lunr(function () {
this.ref('name')
this.field('text')
this.add({
"name": "long",
"text": "Zlah_testZlah_Zlah_testZlah_testZlah_testZlah_testZlah_testZlah_testZlah_testZlah_testZlah"
});
})
window.search = function search(){
var t0 = performance.now();
var result = idx.search('*Zlah*');
var t1 = performance.now();
alert('Found '+result.length+' results in ' + (t1-t0) + 'ms');
}
Issue Analytics
- State:
- Created 6 years ago
- Comments:10 (4 by maintainers)
Top Results From Across the Web
sql - The string I am searching for begins and ends with a ...
The string I am searching for begins and ends with a wildcard character [duplicate] ... Yes but that did not pop up in...
Read more >String matching where one string contains wildcard ...
Given two strings where first string may contain wild card characters and second string is a normal string. Write a function that returns ......
Read more >Wildcard characters allow searching for patterns and ...
You can use wildcard characters anywhere in a search string, and can include multiple wildcards in the same word. For example, to find...
Read more >How to make SQL Server Wildcard Searches Faster
Having the wildcard (%) at the end of the string when searching on uncertain characters is not as challenging as having the wildcard...
Read more >Allow searching for part of a word (prefix / substring searches)
Linked Issues: is duplicated by. Suggestion JRASERVER-22406 - Want to search text for partial words or with a search string beginning with a...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Yes it seems that is quite a nasty bug that is preventing me from using wildcards. Thanks for your help!
Confirmed this fixes it. Thanks @olivernn !