Skip to content

Conversation

@cherifGsoul
Copy link
Member

This adds prioritize can-core collection modules in search results.

Other collection modules needed special boost also, so a specific boost was added to other collections, like function, typedef or pages.

Closes #575

@chasenlehara
Copy link
Member

You will probably need to bump this version number:

var currentIndexVersion = 5;// Bump this whenever the index code is changed

That version number is used here to reindex when the indexing code changes:

if (index && currentIndexVersion === indexVersion) {
this.searchWorker.postMessage({
name: 'load index',
index: index
});
} else {
this.searchWorker.postMessage({
name: 'index data',
index: index,
items: this.convertSearchMapToIndexableItems(searchMap)
});
}

This commit has a little more info: 0d346e5

@cherifGsoul cherifGsoul merged commit 18ad9f9 into master Dec 28, 2020
@cherifGsoul cherifGsoul deleted the favor-core-packages-in-search-engine branch December 28, 2020 17:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Prioritize core packages in search results

4 participants