Customizing views in elasticsearch

I'm customizing elasticsearch list view so that when i click on the
search results it redirects me to the page of that search result. so,
i edited this line

${object[field]?.toString()?.escape()?.raw() ?: '(no value)'}
but it fails each time to pass the tutid and i get a null pointer
exception. How Can I get the tutid, i tried object.id but it didn't
work

it was originally like this:
${object[field]?.toString()?.escape()?.raw() ?: '(no value)'}

any help?