Comments are not indexed for full-text search
The “search” button doesn’t find issues that contain the search terms in the comments. E.g. a search for “cgroup” should show https://yellowgrass.org/issue/Nix/219.
Submitted by Eelco Dolstra on 8 June 2011 at 17:04
Issue Log
We are fixing the other search problems now as well. So I’ll fix this one a bit sooner too. Assigning it to the upcoming release.
the problem is to fix this we have to set an inverse property which could delete every comment/issue
Why do you need an inverse relation? Setting an inverse on (a new) Comment.issue to Issue.log would not work, as log may also contain other events, besides, this would not aid the search, right?
Instead, we introduced the (searchable(name=comments, subclass=Comment)) annotation on Issue.log to make search find issues based on comment text. Does that not work?
indeed this(searchable(name=comments, subclass=Comment)) annotation, only seems to work when the property has an inverse anotation as well.
But setting a regular inverse in Comment is not possible. Wasn’t that the whole idea of the ‘subclass’ command? A log does not just contain comments, but any type of events. Setting an inverse in event (to Issue.log) would be fine, but setting one in Comment would only make sense if it would somehow be a ‘combined inverse’ with the other types of events (e.g. TagAddition and TagRemoval). I do not know the exact semantics of a Hibernate inverse, perhaps I got it wrong, but an inverse in Comment certainly cannot functionally invert the event log.
Issues are now searchable on comments and more
- Issues can be searched on:
- title
- description
- tag (new)
- reporter name
- comments (new)
- Changed searchable annos into search mapping for Issue
Log in to post comments