Task #9317 (new)
Opened 12 years ago
Last modified 10 years ago
Bug: Searching bugs in Insight — at Initial Version
Reported by: | rleigh | Owned by: | jburel |
---|---|---|---|
Priority: | major | Milestone: | OMERO-Beta4.4 |
Component: | Insight | Version: | n.a. |
Keywords: | n.a. | Cc: | jamoore |
Resources: | n.a. | Referenced By: | n.a. |
References: | n.a. | Remaining Time: | n.a. |
Sprint: | n.a. |
Description
Two issues:
- Tags, comments and other types of data are not treated equivalently.
Example: I have tags and comments containing "user-5" and "user-6" inside both tags and comments. I'd like to search for all the tags and comments containing "user-6", excluding those containing "user-5". However, if I have user-6 in a tag, and user-5 in a comment (for a single image), this image is included in the search results. If I have "user-6" and "user-5" in tags or comments only, the image is excluded as expected. It looks like the search is done separately for tags and then separately for comments, and the results combined.
It looks like searching on tags and comments returns the union of
(tags(user-6) - tags(user-5)) ∪ (comments(user-6) - comments(user-5)).
So if user-6 is in a tag and user-5 is in a comment, it returns a hit, rather than nothing (as expected).
I expected that the search would be
(tags(user-6) ∪ comments(user-6)) \ (tags(user-5) ∪ comments(user-5))
- Tokenisation is different for tags, comments and other types of data.
Different fields are tokenised differently during searching. "user-?" and "user-*" work differently for tags and comments.