Skip to content

Commit

Permalink
fix(mod-search): fix export of cql files
Browse files Browse the repository at this point in the history
- try

Closes: MSEARCH-762
  • Loading branch information
viacheslavpoliakov committed Jun 6, 2024
1 parent 38e1b0e commit a4100a8
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/main/java/org/folio/search/service/ResourceIdService.java
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@
import org.folio.search.repository.ResourceIdsTemporaryRepository;
import org.folio.search.repository.SearchRepository;
import org.folio.spring.FolioExecutionContext;
import org.opensearch.action.search.SearchRequest;
import org.opensearch.search.builder.SearchSourceBuilder;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
Expand Down Expand Up @@ -167,6 +168,7 @@ private void streamResourceIds(CqlResourceIdsRequest request, Consumer<List<Stri
.fetchSource(new String[] {request.getSourceFieldPath()}, null)
.sort(fieldSort("_doc"));

log.info("SOURCE:: by [query: {}]", new SearchRequest("TEST").source(searchSource).toString());
searchRepository.streamResourceIds(request, searchSource, idsConsumer);
}

Expand Down

0 comments on commit a4100a8

Please sign in to comment.