-
Bug
-
Resolution: Unresolved
-
Medium
-
None
-
7.7.1, 7.17.5, 7.21.0
-
1
-
Severity 3 - Minor
-
6
-
Issue Summary
When performing a search for multiple camelCase or UpperCamelCase terms, the search hits may be displayed in separate "fragments" even though they're on the same line.
Because of this, the lines containing the hits appear to be cut off or truncated.
Example
For this sample, a source file contains several hits for the terms "ThrottlingAnalyticsPublisher" and "analyticsPublisher":
The following excerpt from the file shows the strings "ThrottlingAnalyticsPublisher" and "analyticsPublisher" on the same line (line 618):
A search for: ThrottlingAnalyticsPublisher analyticsPublisher returns the hits in 3 fragments:
The hits for the search terms on line 618 were split into fragments 2 and 3, instead of showing them on the same line.
Steps to Reproduce
- Commit a file containing multiple instances of camelCase or UpperCamelCase terms
- search for more than one camelCase/UpperCamelCase terms
Expected Results
Search results on the same line are shown together - on the same line, in the same result fragment.
Actual Results
There are cases where the camelCase/UpperCamelCase terms are split and shown in separate result fragments.
Workaround
Currently there is no known workaround for this behavior. A workaround will be added here when available
Additional notes
- When a search is performed, up to 3 "fragments" of code will be returned for a given file that contains search hits.
- The maximum number of fragments is set to 3 and is currently not configurable.
- See KB: Code search does not return all occurrences of a search term and feature request: BSERV-12443 - Provide configuration options for the number of code fragments returned from a search