Skip to content

Commit 09558a3

Browse files
javannascampi
andauthored
fix: change visibility of SearchService#ResultsType to protected (#95671)
The `SearchService#createContext` method takes the recently added `ResultsType` enum which is package private. In order to be able to keep on calling that method, which is protected, from another package, the visibility of the enum `ResultsType` should be increased to protected. Closes #95670 Co-authored-by: Stéphane Campinas <stephane.campinas@gmail.com>
1 parent 5fe8b1f commit 09558a3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

server/src/main/java/org/elasticsearch/search/SearchService.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1469,7 +1469,7 @@ public ResponseCollectorService getResponseCollectorService() {
14691469
/**
14701470
* Used to indicate which result object should be instantiated when creating a search context
14711471
*/
1472-
enum ResultsType {
1472+
protected enum ResultsType {
14731473
DFS {
14741474
@Override
14751475
void addResultsObject(SearchContext context) {

0 commit comments

Comments
 (0)