Skip to content

Commit c0e4317

Browse files
Set CPS index options only when not using PIT
1 parent 4bd1b4c commit c0e4317

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

server/src/main/java/org/elasticsearch/rest/action/search/RestSearchAction.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -245,7 +245,7 @@ public static void parseSearchRequest(
245245
searchRequest.routing(request.param("routing"));
246246
searchRequest.preference(request.param("preference"));
247247
IndicesOptions indicesOptions = IndicesOptions.fromRequest(request, searchRequest.indicesOptions());
248-
if (crossProjectEnabled && searchRequest.allowsCrossProject()) {
248+
if (crossProjectEnabled && searchRequest.allowsCrossProject() && searchRequest.pointInTimeBuilder() == null) {
249249
indicesOptions = IndicesOptions.builder(indicesOptions)
250250
.crossProjectModeOptions(new IndicesOptions.CrossProjectModeOptions(true))
251251
.build();

0 commit comments

Comments
 (0)