Fix lack of title search for posts#1720
Conversation
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files
☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
|
Not a suggestion, just a question to gain understanding:
By "the way we use search" do you mean the way we implement it behind the scenes, or what we allow the user to do? If it's just a matter of implementation, is there a benefit to having separate indexes for title and body, and returning results that match in either (the union of 2 searches)? My guess is that would mean less resources spent on storing and updating indexes, but a slightly slower search query? Is this a trade off between speed of search and speed of everything else? I don't know if either matters at present. |
|
Let's do this after the deploy that we're readying now. (Reduce risk now, then do this in the next deploy.) |
|
Note: there's going to be a couple more changes (should've probably set it in the draft state for now) |
@trichoplax mostly just noting that because it was suggested to use a separate index in the previous discussion, but attempting to do so without changing how We can separate the index out later when (if?) we allow to explicitly search only in title / body (like how SE does with the P.S. Added the "blocked" label just in case as per the deployment note |
closes #387
And no, we can't just add a separate index for the
titlecolumn, the way we use search we need the composite index