qpixel
qpixel copied to clipboard
[WIP] Exact search on a post title
Working on addressing #387.
Previously the search function was only using body_markdown. I changed it so that it also uses the title for the search. Because of this, the sql statement got a little more complex. I am trying to have the title's search score weigh more than body_markdown and was having a bit of trouble figuring out how to do that without hard coding it. Wondering if there is any way I could improve this before opening up the PR for review.
It looks like we lost track of this. Does anybody have any updates? There is a more recent effort looking into moving to elasticsearch, which interacts with searching titles, but it's also marked as a draft.