You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm not sure if this is a bug for you, or for Lunr, but seeing as it has to do with the index, and this is what I'm using to build the index, I thought I would start here.
So I'm getting the error Uncaught TypeError: Cannot read property 'tf' of undefined. It seems to have to do with parsing vector similarities. The code seems to be looking for tf on a document in the tokenStore. https://cl.ly/1B3f1m0B391b
let ip = new Promise((resolve, reject) => {
$.getJSON('/api/search-index.json', data => {
console.log('SEARCH DATA', data);
resolve(lunr.Index.load(data));
});
});
and then later:
if (keywords) {
SearchService.results = SearchService.index.search(keywords);
}
I can provide the index data or the serialized index object if you would like.
The text was updated successfully, but these errors were encountered:
Do give you more information, I seem to only get the error when I have a field in the fields object that is optional. In the example above, I think the subheadline is present, but always has an empty value.
I'm not sure if this is a bug for you, or for Lunr, but seeing as it has to do with the index, and this is what I'm using to build the index, I thought I would start here.
So I'm getting the error
Uncaught TypeError: Cannot read property 'tf' of undefined
. It seems to have to do with parsing vector similarities. The code seems to be looking fortf
on a document in the tokenStore.https://cl.ly/1B3f1m0B391b
My lunr configs look like:
And the client side code looks like:
and then later:
I can provide the index data or the serialized index object if you would like.
The text was updated successfully, but these errors were encountered: