Skip to content
This repository has been archived by the owner on Apr 4, 2023. It is now read-only.

Account for more corner cases w/ section search. #84

Merged
merged 3 commits into from
Aug 17, 2017

Conversation

cmc333333
Copy link
Member

Case 1: A search matches a node's title, but the node doesn't have text. In
this situation, we return text for the first child of that node.

Case 2: A search which matches a section, but none of its paragraphs contain
all of the search term. Here, we return text for the first child of the
section.

CM Lubinski added 2 commits August 17, 2017 15:07
Case 1: A search matches a node's title, but the node doesn't have text. In
this situation, we return text for the first child of that node.

Case 2: A search which matches a section, but none of its paragraphs contain
all of the search term. Here, we return text for the first child of the
section.
While it's very likely this library works correctly on PyPy, Travis's version
is outdated, causing build issues. Given that we have no known PyPy users,
dropping support in favor of maintainability seems like a win.
@coveralls
Copy link

Coverage Status

Coverage increased (+0.05%) to 93.691% when pulling 9d19e94 on 475-better-search into 02522aa on master.

Copy link
Contributor

@tadhg-ohiggins tadhg-ohiggins left a comment

Choose a reason for hiding this comment

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

Nice work.

@cmc333333
Copy link
Member Author

Thanks @tadhg-ohiggins. I'm going to bump the version then merge.

New Features
* #84 Include additional text when searching sections using pgsql. Also, add
  more title fields to give additional context to search results.
@coveralls
Copy link

Coverage Status

Coverage increased (+0.05%) to 93.691% when pulling 8a634a8 on 475-better-search into 02522aa on master.

@cmc333333 cmc333333 merged commit 618955d into master Aug 17, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants