tking | 2022-03-30 16:10:15 UTC | #1
POST /api/v2/speechandtextanalytics/transcripts/search
<b>Body:</b> { "pageSize": 100, "pageNumber": 1, "types": [ "transcripts" ], "returnFields": [ "conversationId", "topic" ], "query": [ { "type": "EXACT", "fields": [ "language" ], "value": "en-us" }, { "type": "EXACT", "fields": [ "mediaType" ], "value": "call" }, { "type": "DATE_RANGE", "fields": [ "conversationStartTime" ], "startValue": "2022-02-02T00:00:00.000Z", "endValue": "2022-02-03T00:00:00.000Z", "dateFormat": "yyyy-MM-dd'T'HH:mm:ss.SSSX" } ] }
<b>this gives the expected result: </b>
{ "total": 5907, "pageCount": 60, "pageSize": 100, "pageNumber": 1, "types": [ "transcripts" ], "results": [ { "conversationId": "0065afe6-b843-4dd7-a80e-5afb8aa25469", "transcriptId": "27033e0a-3825-4473-ac3e-eb9e60e73742", "topic": [ "Greeting", "Build Rapport", "Express Empathy" ], "_type": "transcripts" },
<b>But When I try to get anything past the 10th page, it gives this error</b> { "message": "BADREQUEST", "code": "bad.request", "status": 400, "messageParams": {}, "contextId": "734b34f2-eab5-4d5a-b434-ada14da18bec", "details": [ { "errorCode": "TOOMANYREQUESTEDRESULTS", "fieldName": "NO_FIELD" } ], "errors": [] }
<b>inin-correlation-id:</b> 734b34f2-eab5-4d5a-b434-ada14da18bec
<b>What I've seen in the forums is that it won't pull back more than 10,000 records, but this is only 1000. I can't get more than that. it's extremely limiting. Any Ideas on how to work around this? or is it not working as intended?</b>
tking | 2022-04-20 13:39:04 UTC | #2
https://developer.genesys.cloud/organization/search/transcript-search This Query has a different limit than most others and is only 1000. Use Aggregate Queries instead.
system | 2022-05-20 13:39:15 UTC | #3
This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
This post was migrated from the old Developer Forum.
ref: 14094