Skip to content

Conversation

@imaustink
Copy link
Contributor

  • Updated Lunr to 2.1.0
  • Updated use of the wildcard
  • Removed dead code
  • Fallback to name if no title

- Updated use of wildcard.\n- Removed dead code\n- Fallback to name if no title
@imaustink imaustink requested a review from chasenlehara June 13, 2017 19:22
} else {
// add “can-”, look for an exact match in the title field, and apply a positive boost
q.term('can-' + searchTerm, { usePipeline: false, fields: ['title'], boost: 12 });
q.term('can-' + searchTerm, { usePipeline: false, boost: 12 });
Copy link
Member

Choose a reason for hiding this comment

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

I removed the fields property when we were testing things, but didn’t mean for this change to be committed. If it’s working then ok, but it might be useful to add back.

@imaustink imaustink merged commit d8938af into master Jun 13, 2017
@imaustink imaustink deleted the update-lunr branch June 13, 2017 19:33
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.

3 participants