- Make tokenizer a property of the index, allowing for different indexes to use different tokenizers #205 and #21.
- Fix bug that prevented very large documents from being indexed #203, thanks Daniel Grießhaber.
- Performance improvements when adding documents to the index #208, thanks Dougal Matthews.
- Ensure document ref property type is preserved when returning results #117, thanks Kyle Kirby.
- Introduce
lunr.generateStopWordFilter
for generating a stop word filter from a provided list of stop words. - Replace array-like string access with ES3 compatible
String.prototype.charAt
#186, thanks jkellerer. - Move empty string filtering from
lunr.trimmer
tolunr.Pipeline.prototype.run
so that empty tokens do not enter the index, regardless of the trimmer being used #178, #177 and #174 - Allow tokenization of arrays with null and non string elements #172.
- Parameterize the seperator used by
lunr.tokenizer
, fixes #102.
- Implement
lunr.stopWordFilter
with an object instead of usinglunr.SortedSet
#170, resulting in a performance boost for the text processing pipeline, thanks to Brian Vaughn. - Ensure that
lunr.trimmer
does not introduce empty tokens into the index, #166, thanks to janeisklar
## 0.5.11
- Fix bug when using the unminified build of lunr in some project builds, thanks Alessio Michelini
- Fix bug in IDF calculation, thanks to weixsong for discovering the issue.
- Documentation fixes #111 thanks Chris Van.
- Remove version from bower.json as it is not needed #160, thanks Kevin Kirsche
- Fix link to augment.js on the home page #159, thanks Gábor Nádai
- Remove recursion from SortedSet#indexOf and SortedSet#locationFor to gain small performance gains in Index#search and Index#add
- Fix incorrect handling of non existant functions when adding/removing from a Pipeline #146 thanks to weixsong
- Fix typo when referencing Martin Porter's home page http://tartarus.org/~martin/ #132 thanks James Aylett
- Performance improvement for tokenizer #139 thanks Arun Srinivasan
- Fix vector magnitude caching bug 😳 #142 thanks Richard Poole
- Fix vector insertion bug that prevented lesser ordered nodes to be inserted into a vector #143 thanks Richard Poole
- Fix inefficient use of arguments in SortedSet add method, thanks to Max Nordlund.
- Fix deprecated use of path.exists in test server #141 thanks wei song
- Performance improvement for stemmer #124 thanks Tony Jacobs
- Performance improvement when add documents to the index #114 thanks Alex Holmes
- Fix bug in tokenizer introduced in 0.5.4 #101 thanks Nolan Lawson
- Tokenizer also splits on hyphens #98 thanks Nolan Lawson
- Correctly stem words ending with the letter 'y' #84 thanks Mihai Valentin
- Improve build tools and dev dependency installation #78 thanks Ben Pickles
- Use npm they said, it'll be easy they said.
- Because npm issues :(
- Add plugin support to enable i18n and other extensions to lunr.
- Add AMD support #72 thanks lnwdr.
- lunr.Vector now implemented using linked lists for better performance especially in indexes with large numbers of unique tokens.
- Build system clean up.
- Fix performance regression introduced in 0.4.4 by fixing #64.
- Fix bug #64 idf cache should handle tokens with the same name as object properties, thanks gitgrimbo.
- Intersperse source files with a semicolon as part of the build process, fixes #61, thanks shyndman.
- Fix bug #47 tokenizer converts its input to a string before trying to split it into tokens, thanks mikhailkozlov.
- Add index mutation events ('add', 'update' and 'remove').
- Performance improvements to searching.
- Penalise non-exact matches so exact matches are better ranked than expanded matches.
- Fix bug #32 which prevented lunr being used where a
console
object is not present, thanks Tony Marklove and wyuenho
- Fix bug #24 that caused an error when trying to remove a non-existant document from the index, thanks Jesús Leganés Combarro
- Implement JSON serialisation, allows indexes to be loaded and dumped, thanks ssured.
- Performance improvements to searching and indexing.
- Fix bug #15 with tokeniser that added stray empty white space to the index, thanks ssured.
- Fix issue with searching for a term not in the index #12, thanks mcnerthney and makoto
- Boost exact term matches so they are better ranked than expanded term matches, fixes #10, thanks ssured
- Changes to the build process.
- Add component.json and package.json
- Add phantomjs test runner
- Remove redundant attributes
- Many spelling corrections, thanks Pascal Borreli