Skip to content

Commit

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

Closes: MSEARCH-762
  • Loading branch information
viacheslavpoliakov committed Jun 11, 2024
1 parent 3060122 commit 8eab9c9
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 @@ -27,6 +27,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.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

Expand Down Expand Up @@ -146,6 +147,7 @@ private void streamResourceIds(CqlResourceIdsRequest request, Consumer<List<Stri
.sort(fieldSort("_doc"));

log.info("[streamResourceIds] QUERY TO ELASTIC: {}", request.getQuery());
log.info("[streamResourceIds] SEARCH_SOURCE TO ELASTIC: {}", new SearchRequest("TEST_LOG").source(searchSource).toString());
searchRepository.streamResourceIds(request, searchSource, idsConsumer);
}

Expand Down

0 comments on commit 8eab9c9

Please sign in to comment.