Modify ↓
Ticket #8436 (new defect)
Opened 3 years ago
Last modified 2 years ago
search results won't show matches from ticket comments
| Reported by: | cboos | Owned by: | cboos |
|---|---|---|---|
| Priority: | normal | Milestone: | next-minor-0.12.x |
| Component: | search system | Version: | 0.11-stable |
| Severity: | minor | Keywords: | |
| Cc: | |||
| Release Notes: | |||
| API Changes: | |||
Description
Noticed while testing the case sensitivity of search: tickets can be correctly retrieved when looking for words written in ticket comments, but the excerpt shown in the search results will never show the actual matches.
Attachments
Change History
comment:1 Changed 2 years ago by Carsten Klein <carsten.klein@…>
Note: See
TracTickets for help on using
tickets.



This seems to be due to the fact that some results match the comments to a ticket and some would match the actual ticket description or summary.
I think that a provable solution would be to join all of the text, description newvalue and comments into one big cblob that then would be shortened by search.api.shorten_result.
This, however, may lead to a massive performance hit with ticket searches.
Perhaps the best solution would be to further refine the ISearchSource implementation in ticket.web_ui
which then would split the existing single query into multiple queries. This however, will also degrade overall search performance.
Any ideas?