Skip to content

Commit

Permalink
Update TransportGetFindingsSearchAction.kt
Browse files Browse the repository at this point in the history
  • Loading branch information
Annie Lee committed Mar 23, 2022
1 parent babd908 commit 9182aa3
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -160,11 +160,11 @@ class TransportGetFindingsSearchAction @Inject constructor(
log.info("Parsing new finding with id: $id")
val finding = Finding.parse(xcp, id)
// TODO: Search the document with doc_id
val doc_ids = finding.relatedDocId
val doc_ids = finding.relatedDocId.split(",").toTypedArray()
val sourceIndex = finding.index
log.info("doc_ids: $doc_ids")
findings.add(finding)
for (doc_id in doc_ids) {
log.info("doc_id: $doc_id)
// Search document in index
searchDocument(doc_id, sourceIndex, actionListener)
}
Expand Down

0 comments on commit 9182aa3

Please sign in to comment.