Session matching a search query in SessionService.SearchSessions
.
JSON representation |
---|
{
"session": string,
"sessionDisplayName": string,
"matchedTurns": [
{
object ( |
Fields | |
---|---|
session |
The session resource name. Format: |
sessionDisplayName |
Output only. Display name of the session. |
matchedTurns[] |
Output only. The turns within the session that matched the query. May be empty. |
createTime |
Output only. The time when the session was created. Uses RFC 3339, where generated output will always be Z-normalized and use 0, 3, 6 or 9 fractional digits. Offsets other than "Z" are also accepted. Examples: |
updateTime |
Output only. The time when the session was last updated. Uses RFC 3339, where generated output will always be Z-normalized and use 0, 3, 6 or 9 fractional digits. Offsets other than "Z" are also accepted. Examples: |
starred |
Output only. Whether the session is starred by the user. |
TurnResult
A turn within a session that matched the query.
JSON representation |
---|
{
"turnId": string,
"textContent": string,
"snippets": [
{
object ( |
Fields | |
---|---|
turnId |
Output only. Unique id of the turn that matched. |
textContent |
Output only. The full text content of the turn. |
snippets[] |
Output only. The snippet(s) of the turn that matched the query. May be absent. |
Snippet
Represents a snippet of text from a turn, with highlight ranges. For full-text search, the snippet text will a portion of the matched text within which the highlight ranges are specified. For semantic search, the snippet text will be the complete chunk from the turn that matched the search query.
JSON representation |
---|
{ "snippetText": string, "highlights": [ { object ( |
Fields | |
---|---|
snippetText |
Output only. The text of the snippet. |
highlights[] |
Output only. The highlights within the snippet matching the query. May be empty. |
matchType |
Output only. The type of match for the snippet. |
Highlight
Represents a range of text within a string. Indices are 1-based and inclusive, so for example if the snippet text is "Google Cloud Storage", startIndex is 18, and endIndex is 22, the highlighted text is "Cloud". For full-text search, the highglight will be the matched text. For semantic search, the highlight may be the full text of the chunk, a subsequence of the chunk if a semantic match can be performed, or it may be absent altogether.
JSON representation |
---|
{ "startIndex": integer, "endIndex": integer } |
Fields | |
---|---|
startIndex |
Output only. The index of the first character of the highlight, inclusive. |
endIndex |
Output only. The index of the last character of the highlight, inclusive. |