Skip to content

Commit

Permalink
Merge 320cacb into 14804e9
Browse files Browse the repository at this point in the history
  • Loading branch information
CaptainChaos committed Feb 19, 2020
2 parents 14804e9 + 320cacb commit bd3bb68
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/MiniSearch.js
Original file line number Diff line number Diff line change
Expand Up @@ -238,7 +238,7 @@ class MiniSearch {
throw new Error(`MiniSearch: cannot remove document with ID ${document[idField]}: it is not in the index`)
}
fields.filter(field => document[field] != null).forEach(field => {
tokenize(document[field]).forEach(term => {
tokenize(document[field], field).forEach(term => {
const processedTerm = processTerm(term)
if (isTruthy(processedTerm)) {
removeTerm(this, this._fieldIds[field], shortDocumentId, processTerm(term))
Expand Down

0 comments on commit bd3bb68

Please sign in to comment.