Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Flexsearch with popularity basic #234

Merged
merged 5 commits into from
Nov 21, 2019

Conversation

peterbe
Copy link
Contributor

@peterbe peterbe commented Nov 15, 2019

Fixes #49
Fixes #231

@peterbe peterbe requested a review from Gregoor November 15, 2019 11:57
return {
title: this._map[uri].title,
uri,
popularity: this._map[uri].popularity
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This might not be needed/used but I think I put it in there when I was debugging the popularity in the results display.

client/src/fuzzy-search.js Outdated Show resolved Hide resolved
Copy link
Contributor

@Gregoor Gregoor left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Only read it, didn't run it (as I didn't have time yet to look into why Milton wasn't working for me). But code looks good though.

client/src/fuzzy-search.js Outdated Show resolved Hide resolved
@peterbe peterbe force-pushed the flexsearch-with-popularity-basic branch from 391ff6d to efbd16c Compare November 21, 2019 18:06
@peterbe
Copy link
Contributor Author

peterbe commented Nov 21, 2019

@Gregoor I took your minor nits and I also converted from fat arrow functions to regular functions in the fuzzy-search.js. Some results, just small notation differences.
However, the regex solution is still a bit broken.
I'm going to tackle that as a separate issue for now.

@peterbe peterbe merged commit 01bd601 into mdn:master Nov 21, 2019
@peterbe peterbe deleted the flexsearch-with-popularity-basic branch November 21, 2019 18:09
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.

Our fuzzysearch is slow How to boost site-search/autocomplete
2 participants