# US 10,956,436 B2 · Refining search results generated from a combination of multiple types of searches

> Agents: this data is available as JSON from the patentgrep API and MCP server — see https://patentgrep.com/llms.txt

- Number: US 10,956,436 B2
- Document ID: US10956436B2
- Status: Granted
- Kind: B2
- Application number: 15/955,384
- Filed: 2018-04-17
- Published: 2019-10-17
- Granted: 2021-03-23
- Earliest claimed: 2018-04-17
- Assignees: International Business Machines Corporation
- Applicants: International Business Machines Corporation
- Inventors: Peter Haumer; Gary I. Mazo; Sanket Parikh; Milandeep S. Shergill
- Web page: https://patentgrep.com/patent/US10956436B2

## CPC

- G06F 16/248: Presentation of query results
- G06F 16/285: {Clustering or classification}
- G06F 16/3325: {Reformulation based on results of preceding query}
- G06F 16/3349: Reuse of stored results of previous queries
- G06F 16/338: Presentation of query results
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

A computer program is searched for one or more select terms. A first type of search is performed on source code of the computer program to search for one or more select terms in the source code. Results of the first type of search, if any, are included in a result set. A second type of search is performed on one or more particular elements of the computer program to search for the one or more select terms in the one or more particular elements. Results of the second type of search, if any, are added to the result set. Another search is performed, based on analysis of the result set. The other search searches for the one or more select terms in one or more selected source artifacts of the computer program to provide a refined result set. An action is performed using the refined set.

## Claims

### Claim 1

A computer program product for facilitating searching of computer programs, the computer program product comprising:
a computer readable storage medium readable by a processing circuit and storing instructions for performing a method comprising:
performing a first type of search on source code of a computer program to search for one or more select terms in the source code, wherein the first type of search comprises an unstructured search in which the source code is treated as unstructured textual data and the first type of search searches for the one or more select terms in the unstructured textual data, and wherein the one or more select terms are applicable to a particular subject area, the particular subject area including a particular function of the particular subject area, and wherein the one or more select terms related to the particular function are searched for in the unstructured textual data of the source code;
including results of the first type of search in a result set, based on results resulting from the first type of search;
performing a second type of search on the computer program to search for the one or more select terms in one or more particular elements of the computer program, wherein the second type of search is different from the first type of search and is based on a structure of the computer program, wherein the structure of the computer program includes one or more elements selected from a group consisting of syntactic elements, structure elements and semi-structured elements of the computer program, and wherein the performing the second type of search includes searching the one or more particular elements selected from the group for the one or more select terms;
adding results of the second type of search to the result set, based on results resulting from the second type of search;
performing another search, based on analysis of the result set, the other search searching for the one or more select terms in one or more selected source artifacts of the computer program to provide a refined result set; and
performing an action using the refined result set.

### Claim 2 (depends on 1)

The computer program product of claim 1, wherein the one or more select terms are assigned to the particular function.

### Claim 3 (depends on 1)

The computer program product of claim 1, wherein the semi-structured elements include comments.

### Claim 4 (depends on 1)

The computer program product of claim 1, wherein the structured search comprises performing classification to determine the one or more particular elements of the computer program to be searched for the one or more select terms.

### Claim 5 (depends on 1)

The computer program product of claim 1, wherein at least one of the syntactic elements and the structure elements includes at least one element selected from a group consisting of: user-defined symbols, literals, absence of certain control flow, presence of certain control flow and reference to external calls.

### Claim 6 (depends on 1)

The computer program product of claim 1, wherein the one or more selected source artifacts include one or more specific files of the computer program.

### Claim 7 (depends on 1)

The computer program product of claim 1, wherein the one or more selected source artifacts include one or more specific sections of the computer program.

### Claim 8 (depends on 1)

The computer program product of claim 1, wherein the action is one selected from the group consisting of: generating a report, implementing a business process, extracting business value, creating external interfaces, and transforming the computer program from one programming language to another programming language.

### Claim 9 (depends on 1)

The computer program product of claim 1, wherein the performing the other search comprises selecting, by a subject matter user, based on analysis of the result set, the one or more selected source artifacts to be searched for the one or more selected terms.

### Claim 10

A computer system for facilitating searching of computer programs, the computer system comprising:
a memory; and
a processor in communication with the memory, wherein the computer system is configured to perform a method, the method comprising:
performing a first type of search on source code of a computer program to search for one or more select terms in the source code, wherein the first type of search comprises an unstructured search in which the source code is treated as unstructured textual data and the first type of search searches for the one or more select terms in the unstructured textual data, and wherein the one or more select terms are applicable to a particular subject area, the particular subject area including a particular function of the particular subject area, and wherein the one or more select terms related to the particular function are searched for in the unstructured textual data of the source code;
including results of the first type of search in a result set, based on results resulting from the first type of search;
performing a second type of search on the computer program to search for the one or more select terms in one or more particular elements of the computer program, wherein the second type of search is different from the first type of search and is based on a structure of the computer program, wherein the structure of the computer program includes one or more elements selected from a group consisting of syntactic elements, structure elements and semi-structured elements of the computer program, and wherein the performing the second type of search includes searching the one or more particular elements selected from the group for the one or more select terms;
adding results of the second type of search to the result set, based on results resulting from the second type of search;
performing another search, based on analysis of the result set, the other search searching for the one or more select terms in one or more selected source artifacts of the computer program to provide a refined result set; and
performing an action using the refined result set.

### Claim 11 (depends on 10)

The computer system of claim 10, wherein the one or more select terms are assigned to the particular function.

### Claim 12 (depends on 10)

The computer system of claim 10, wherein the semi-structured elements include comments.

### Claim 13 (depends on 10)

The computer system of claim 10, wherein at least one of the syntactic elements and the structure elements includes at least one element selected from a group consisting of: user-defined symbols, literals, absence of certain control flow, presence of certain control flow and reference to external calls.

### Claim 14 (depends on 10)

The computer system of claim 10, wherein the one or more selected source artifacts include one or more specific files of the computer program.

### Claim 15 (depends on 10)

The computer system of claim 10, wherein the one or more selected source artifacts include one or more specific sections of the computer program.

### Claim 16 (depends on 10)

The computer system of claim 10, wherein the performing the other search comprises selecting, by a subject matter user, based on analysis of the result set, the one or more selected source artifacts to be searched for the one or more selected terms.

### Claim 17

A computer-implemented method of facilitating searching of computer programs, the computer-implemented method comprising:
performing, by a processor, a first type of search on source code of a computer program to search for one or more select terms in the source code, wherein the first type of search comprises an unstructured search in which the source code is treated as unstructured textual data and the first type of search searches for the one or more select terms in the unstructured textual data, and wherein the one or more select terms are applicable to a particular subject area, the particular subject area including a particular function of the particular subject area, and wherein the one or more select terms related to the particular function are searched for in the unstructured textual data of the source code;
including results of the first type of search in a result set, based on results resulting from the first type of search;
performing a second type of search on the computer program to search for the one or more select terms in one or more particular elements of the computer program;
wherein the second type of search is different from the first type of search and is based on a structure of the computer program, wherein the structure of the computer program includes one or more elements selected from a group consisting of syntactic elements, structure elements and semi-structured elements of the computer program, and wherein the performing the second type of search includes searching the one or more particular elements selected from the group for the one or more select terms;
adding results of the second type of search to the result set, based on results resulting from the second type of search;
performing another search, based on analysis of the result set, the other search searching for the one or more select terms in one or more selected source artifacts of the computer program to provide a refined result set; and
performing an action using the refined result set.

### Claim 18 (depends on 17)

The computer-implemented method of claim 17, wherein the one or more select terms are assigned to the particular function.

### Claim 19 (depends on 17)

The computer-implemented method of claim 17, wherein the semi-structured elements include comments.

### Claim 20 (depends on 17)

The computer-implemented method of claim 17, wherein the performing the other search comprises selecting, by a subject matter user, based on analysis of the result set, the one or more selected source artifacts to be searched for the one or more selected terms.
