Return the last title that precedes the query result

Hello,

I’d like to give some structure to my Querry results.
Is there a way to return, in addition to the match text, the last title that precedes this result?
Is this possible with metadata?

Vivien

Hi Vivien,

We return the query result as a list. To get the title of the previous result in the result set, you can access it in your code using indexes on the result list. The title can be in the metadata, so you access the “title” metadata of the previous result in the result list.

I hope I didn’t misunderstand your question.

Regards,
Tallat

1 Like