Incorrect JSON types in Search API results

Steps to reproduce

Steps to reproduce:
1. ingest a recording where the title consists only of numbers
2. search for it using the search api

Actual Results:
title has the wrong type (Number):

title: 12345

Expected Results:
title has the correct type (String):

title: "12345"

Workaround (if any):
wherever you use the title from a search result, remember to cast it to a string before trying to manipulate it.

also, duration is a String but presumably should be a number.

i have not tested other APIs so don't know if the issue is more widespread.


Rubén Pérez
October 18, 2017, 4:26 PM

Just wanted to note that this still happens one year later than this issue was first reported. I created the task (which duplicates this one and is now therefore closed) and updated the "Affects version" of this ticket to match the current 4.0 version.

Your pinned fields
Click on the next to a field label to start pinning.




Paul Pettit


Incorrectly Functioning With Workaround