Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Path Parameters
database
string
required
Target database.
Body
application/json
POST /v1/find/{database}: the lines of an indexed text column that
contain a literal. An unknown field is refused.
field_name
string
required
The full-text-indexed column searched.
literal
string
required
The text to find, as a substring of one line of field_name. It must
hold at least one letter or digit and no newline, and it is found
only where it starts and ends at word boundaries of the column's text
(env::var is found, nv::va is not). The full-text grammar
characters (", +, -) are read as punctuation.
table_name
string
required
The table searched.
group_by
string | null
A column other than field_name whose distinct values group the line
counts (lines per file when it names the path column). Counted over
every matching line of every row, not only the lines returned; the
groups with the most lines come first, at most 500 of them, and
groups_total says how many there were.
ignore_case
boolean
Match regardless of letter case.
limit
integer | null
Lines returned at most: 500 when omitted, and never more than 500;
0 returns the counts alone. The total is reported whatever the
limit.
Required range: x >= 0
line_base
string | null
An integer column holding each row's first line in its source (a
chunked file's start_line), for a table whose rows overlap: a line
two rows both hold is then counted once, at line_base + line_index,
before the total, the groups and the limit. Omitted, every row's
lines count.
projection
string[]
Columns returned beside each line, so the caller can place it: a
code table asks for path and start_line and adds the line's
line_index. Omitted, each line's columns is {} and lines order
by line_index alone; name at least one column to place or tell
apart lines from different rows. field_name itself is refused: the
line is already returned.
rerank
null | object
Rerank the matched lines for a question with the deployment's
grading model and return the top k; the total and the group counts
still cover every match. Refused with 501 on a deployment that runs
no grading model.
Show child attributes
Response
The matching lines as JSON: total, truncated, lines (each with the projected columns, {} when none were named, its line_index within the row's text and the line, cut to an excerpt around the literal), groups_total (distinct group_by values among the matches; 0 when none was named) and, when a group_by column was named and lines matched, groups with the line count per value (most lines first, at most 500 groups). At most limit lines (500 by default and at most; 0 for the counts alone); the total and the group counts cover every match.
What a find found.
groups_total
integer
required
Distinct values of the group_by column among the matches, before
the group cap; 0 when no column was named.
Required range: x >= 0
lines
object[]
required
The first limit matched lines, ordered by the projected values
(numbers numerically), then by where the line sits in its source,
then by line_index within the row, then by the line text. So the
lines of one source come back in the order they appear in it, and a
truncated answer is its first limit lines rather than an arbitrary
limit of them.
Show child attributes
total
integer
required
Matched lines in all, before the limit.
Required range: x >= 0
truncated
boolean
required
Whether lines holds fewer than total.
groups
object[]
Per-group counts, absent when no group_by column was named or when
nothing matched: the groups with the most lines first, then by value,
at most the group cap of them.
Show child attributes
Was this page helpful?
{"docsConfig":{"theme":"mint","$schema":"https://mintlify.com/docs.json","name":"Infino","description":"Infino is an open-source retrieval engine for full-text, vector, and SQL search, with your data stored as Apache Parquet on object storage.","colors":{"primary":"#d24011","light":"#e8623a","dark":"#d24011"},"logo":{"light":"https://mintcdn.com/infino-29/sXqDYmwcZ7BW4kvO/logo/infino-logo.png?fit=max\u0026auto=format\u0026n=sXqDYmwcZ7BW4kvO\u0026q=85\u0026s=6bf8ba5e6249a14bb302a90e30e5e18f","dark":"https://mintcdn.com/infino-29/sXqDYmwcZ7BW4kvO/logo/infino-logo.png?fit=max\u0026auto=format\u0026n=sXqDYmwcZ7BW4kvO\u0026q=85\u0026s=6bf8ba5e6249a14bb302a90e30e5e18f","href":"https://infino.ai"},"favicon":"https://mintcdn.com/infino-29/LrgKEC9MS1pd7XX7/favicon.png?fit=max\u0026auto=format\u0026n=LrgKEC9MS1pd7XX7\u0026q=85\u0026s=e08bd7081efa9de5d611ea206ba6e46c","navbar":{"links":[{"href":"https://infino.ai","label":"Home"},{"href":"https://infino.ai/vs","label":"Compare"},{"href":"https://infino.ai/cloud","label":"Infino Cloud"},{"href":"https://github.com/infino-ai/infino","label":"GitHub"}],"primary":{"type":"button","label":"Talk to us","href":"mailto:[email protected]"}},"footer":{"socials":{"github":"https://github.com/infino-ai/infino"},"links":[{"header":"Resources","items":[{"label":"GitHub","href":"https://github.com/infino-ai/infino"},{"label":"Issues","href":"https://github.com/infino-ai/infino/issues"}]}]},"search":{"prompt":"Search the Infino docs…"},"seo":{"metatags":{"canonical":"https://infino.ai/docs","og:site_name":"Infino","og:type":"website","og:image":"/images/og-card.png","twitter:card":"summary_large_image","twitter:image":"/images/og-card.png"},"indexing":"all"},"fonts":{"family":"Inter"},"contextual":{"options":["copy","view","chatgpt","claude","perplexity","mcp","cursor","vscode"],"display":"header"},"metadata":{"timestamp":true},"styling":{"latex":false},"navigation":{"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"infino-29","hasAudioNarration":false,"actualSubdomain":"infino-29","customDomains":["infino.ai"],"gitSource":{"type":"github","owner":"infino-ai","repo":"docs","deployBranch":"main","contentDirectory":"","isPrivate":false,"mountPath":"","label":"","_id":"6b10f1f49ffae5051c417fed"},"feedback":{"agentFeedback":true,"thumbs":true},"entitlements":{"AI_CHAT":{"status":"DISABLED"}},"buildId":"6b114b72948bc6989af172ce","clientVersion":"0.0.4428","searchFilterCounts":[{"language":"default","tag":"API Reference","count":32},{"language":"default","tag":"REST API","count":29},{"language":"default","tag":"Documentation","count":28},{"language":"default","tag":"Infino Cloud","count":12},{"language":"default","tag":"Guides","count":9},{"language":"default","tag":"Agent","count":7},{"language":"default","tag":"Search","count":7},{"language":"default","tag":"Reference","count":4},{"language":"default","tag":"Databases","count":4},{"language":"default","tag":"Hydrate","count":4}]},"assistantConfig":{"enableAskAiButton":false,"enableStarterQuestions":false,"enableContextualStarterQuestions":false,"enableAskAiSearchBar":true},"basePath":"/docs","hasChatPermissions":false,"hasWebMcpPermissions":false,"toggles":[{"name":"kill-isr","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-mintlify-slack","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-integrations-settings","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"rbac-expansion","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-pr-grouping","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-prefix","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"analytics-v7","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"user-flows-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"no-publish-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving-live","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"stripTemperatureMiddleware","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"support-platform-pylon-zendesk","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"instant-rollback","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications-server","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-fable","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fixed-ai-action-pricing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automation-resolve-merge-conflict","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"scoped-publishing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"mintql","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"page-level-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-version-history-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"billing-page-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"full-page-search","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workspace-projects","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fork-pr-previews","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"revalidation-jwt","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"hobby-abuse-scan","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"dashboard-inbox","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-dual-write","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"approve-review-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-metadata","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-serve","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"live-agents","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"starter-pricing","enabled":true,"variant":{"name":"treatment","enabled":true,"payload":{"type":"string","value":"treatment"},"feature_enabled":true},"impressionData":false},{"name":"llms-txt-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"auth-vite-origin","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false}],"starterQuestions":[],"googleFontsInlined":false},"customCss":[]}
{"page":{"pagePath":"api-reference/agent/find-lines","slug":"/api-reference/agent/find-lines","pageMetadata":{"title":"Find lines","description":"A search at line grain: every line of the column's text that holds the\nliteral, with the columns that place it, counted over every match.\n\nPreview: this route may change between releases. It needs the agent APIs enabled on your account, and answers 403 until they are.","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json post /v1/find/{database}","href":"/api-reference/agent/find-lines","autogeneratedByOpenApi":true},"description":{"compiledSource":"\"use strict\";\nconst {Fragment: _Fragment, jsx: _jsx, jsxs: _jsxs} = arguments[0];\nconst {useMDXComponents: _provideComponents} = arguments[0];\nfunction _createMdxContent(props) {\n const _components = {\n p: \"p\",\n ..._provideComponents(),\n ...props.components\n };\n return _jsxs(_Fragment, {\n children: [_jsx(_components.p, {\n children: \"A search at line grain: every line of the column’s text that holds the\\nliteral, with the columns that place it, counted over every match.\"\n }), \"\\n\", _jsx(_components.p, {\n children: \"Preview: this route may change between releases. It needs the agent APIs enabled on your account, and answers 403 until they are.\"\n })]\n });\n}\nfunction MDXContent(props = {}) {\n const {wrapper: MDXLayout} = {\n ..._provideComponents(),\n ...props.components\n };\n return MDXLayout ? _jsx(MDXLayout, {\n ...props,\n children: _jsx(_createMdxContent, {\n ...props\n })\n }) : _createMdxContent(props);\n}\nreturn {\n default: MDXContent\n};\n","frontmatter":{},"scope":{}},"pageType":"default","mdx":{"mdxSource":{"compiledSource":"\"use strict\";const{Fragment:_Fragment,jsx:_jsx}=arguments[0];const{useMDXComponents:_provideComponents}=arguments[0];function _createMdxContent(props){return _jsx(_Fragment,{})}function MDXContent(props={}){const{wrapper:MDXLayout}={..._provideComponents(),...props.components};return MDXLayout?_jsx(MDXLayout,{...props,children:_jsx(_createMdxContent,{...props})}):_createMdxContent(props)}return{default:MDXContent}","frontmatter":{},"scope":{"config":{},"pageMetadata":{"title":"Find lines","description":"A search at line grain: every line of the column's text that holds the\nliteral, with the columns that place it, counted over every match.\n\nPreview: this route may change between releases. It needs the agent APIs enabled on your account, and answers 403 until they are.","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json post /v1/find/{database}","href":"/api-reference/agent/find-lines","autogeneratedByOpenApi":true}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[],"codeExamples":{}},"jsLinks":["/docs/_mintlify/custom/infino-29/645d308d2f9fae79/structured-data.js","/docs/_mintlify/custom/infino-29/ec3d5239f2e7ff69/same-tab-links.js","/docs/_mintlify/custom/infino-29/cf391a6d1558677e/context7-widget.js"],"openApiReferenceData":{"operation":{"tags":["Agent"],"summary":"Find lines","description":"A search at line grain: every line of the column's text that holds the\nliteral, with the columns that place it, counted over every match.\n\nPreview: this route may change between releases. It needs the agent APIs enabled on your account, and answers 403 until they are.","operationId":"find","parameters":["c877d8a7-8915-46e3-9d95-8ad245e0a148"],"requestBody":"0ef4f0f4-b991-413a-9c56-d8791e445c97","responses":{"200":"e71b526c-1b47-4472-a470-e593e41d4c1d","400":"c653d65d-73a1-41d6-b0ba-959c2a81d70e","401":"51e9926a-bdf5-43fb-a092-a438cc13c99f","402":"24b04cf1-2a4c-4604-ab9b-22af9a7b8639","403":"653926fa-2cad-42bf-a263-0b11a3954cf3","404":"36d30638-b69e-4b5b-b8bb-ea66fb17e027","410":"d7f25884-0d41-474c-a5c0-a388a8df5b00","501":"90e219f1-f8c4-4155-93e0-26f95725352b","503":"96b659b3-2d28-448f-8ab8-ad4262073b12"},"security":["1b135d6c-8b60-435a-89b4-8f568af58467"],"x-stability":"preview","method":"post","type":"path","servers":["599977cb-8918-427d-9d7b-8a848f5cf332"],"path":"/v1/find/{database}","baseUrlOptions":["https://api.platform.infino.ws"],"title":"Find lines","codeSamples":[],"requiredOnlyExamples":false,"requestExampleType":"generated","responseExampleType":"generated"},"dependencies":{"parameters":{"c877d8a7-8915-46e3-9d95-8ad245e0a148":{"name":"database","in":"path","description":"Target database.","required":true,"schema":{"type":"string","isRequired":true,"description":"Target database.","uniqueKey":"","typeLabel":"string"}}},"requestBody":{"content":{"application/json":{"schema":{"type":"object","description":"`POST /v1/find/{database}`: the lines of an indexed text column that\ncontain a literal. An unknown field is refused.","required":["table_name","field_name","literal"],"properties":{"field_name":{"type":"string","description":"The full-text-indexed column searched.","isRequired":true,"uniqueKey":"field_name","typeLabel":"string"},"literal":{"type":"string","description":"The text to find, as a substring of one line of `field_name`. It must\nhold at least one letter or digit and no newline, and it is found\nonly where it starts and ends at word boundaries of the column's text\n(`env::var` is found, `nv::va` is not). The full-text grammar\ncharacters (`\"`, `+`, `-`) are read as punctuation.","isRequired":true,"uniqueKey":"literal","typeLabel":"string"},"table_name":{"type":"string","description":"The table searched.","isRequired":true,"uniqueKey":"table_name","typeLabel":"string"},"group_by":{"oneOf":[{"type":"string","description":"A column other than `field_name` whose distinct values group the line\ncounts (lines per file when it names the path column). Counted over\nevery matching line of every row, not only the lines returned; the\ngroups with the most lines come first, at most 500 of them, and\n`groups_total` says how many there were.","uniqueKey":"group_by.oneOf.0","typeLabel":"string"},{"type":"null","description":"A column other than `field_name` whose distinct values group the line\ncounts (lines per file when it names the path column). Counted over\nevery matching line of every row, not only the lines returned; the\ngroups with the most lines come first, at most 500 of them, and\n`groups_total` says how many there were.","uniqueKey":"group_by.oneOf.1","typeLabel":"null"}],"uniqueKey":"group_by","typeLabel":"string | null"},"ignore_case":{"type":"boolean","description":"Match regardless of letter case.","uniqueKey":"ignore_case","typeLabel":"boolean"},"limit":{"oneOf":[{"type":"integer","description":"Lines returned at most: 500 when omitted, and never more than 500;\n0 returns the counts alone. The total is reported whatever the\nlimit.","minimum":0,"uniqueKey":"limit.oneOf.0","typeLabel":"integer"},{"type":"null","description":"Lines returned at most: 500 when omitted, and never more than 500;\n0 returns the counts alone. The total is reported whatever the\nlimit.","minimum":0,"uniqueKey":"limit.oneOf.1","typeLabel":"null"}],"uniqueKey":"limit","typeLabel":"integer | null"},"line_base":{"oneOf":[{"type":"string","description":"An integer column holding each row's first line in its source (a\nchunked file's `start_line`), for a table whose rows overlap: a line\ntwo rows both hold is then counted once, at `line_base + line_index`,\nbefore the total, the groups and the limit. Omitted, every row's\nlines count.","uniqueKey":"line_base.oneOf.0","typeLabel":"string"},{"type":"null","description":"An integer column holding each row's first line in its source (a\nchunked file's `start_line`), for a table whose rows overlap: a line\ntwo rows both hold is then counted once, at `line_base + line_index`,\nbefore the total, the groups and the limit. Omitted, every row's\nlines count.","uniqueKey":"line_base.oneOf.1","typeLabel":"null"}],"uniqueKey":"line_base","typeLabel":"string | null"},"projection":{"type":"array","items":{"type":"string","uniqueKey":"projection.items.[INDEX]","typeLabel":"string"},"description":"Columns returned beside each line, so the caller can place it: a\ncode table asks for `path` and `start_line` and adds the line's\n`line_index`. Omitted, each line's `columns` is `{}` and lines order\nby `line_index` alone; name at least one column to place or tell\napart lines from different rows. `field_name` itself is refused: the\nline is already returned.","uniqueKey":"projection","typeLabel":"string[]"},"rerank":{"oneOf":[{"type":"null","uniqueKey":"rerank.oneOf.0","typeLabel":"null"},{"type":"object","description":"Rerank the matched lines for a question with the deployment's\ngrading model and return the top `k`; the total and the group counts\nstill cover every match. Refused with 501 on a deployment that runs\nno grading model.","required":["question"],"properties":{"question":{"type":"string","description":"The question the rows are meant to answer, in the words it was\nasked.","isRequired":true,"uniqueKey":"rerank.oneOf.1.question","typeLabel":"string"},"k":{"oneOf":[{"type":"integer","description":"Rows to return, best first. A search fetches a wider pool of\ncandidates to score (or its own `k`, if wider) and returns this\nmany; absent, the query's own `k`, or every row of a query that\nnames none.","minimum":0,"uniqueKey":"rerank.oneOf.1.k.oneOf.0","typeLabel":"integer"},{"type":"null","description":"Rows to return, best first. A search fetches a wider pool of\ncandidates to score (or its own `k`, if wider) and returns this\nmany; absent, the query's own `k`, or every row of a query that\nnames none.","minimum":0,"uniqueKey":"rerank.oneOf.1.k.oneOf.1","typeLabel":"null"}],"uniqueKey":"rerank.oneOf.1.k","typeLabel":"integer | null"}},"additionalProperties":false,"uniqueKey":"rerank.oneOf.1","typeLabel":"object"}],"uniqueKey":"rerank","typeLabel":"null | object"}},"additionalProperties":false,"uniqueKey":"","typeLabel":"object"},"example":{"table_name":"code","field_name":"content","literal":"retry_budget","projection":["path","start_line"],"group_by":"path","line_base":"start_line","limit":2},"examples":{"Example":{"title":"Example","value":{"table_name":"code","field_name":"content","literal":"retry_budget","projection":["path","start_line"],"group_by":"path","line_base":"start_line","limit":2}}},"exampleType":"examples"}},"required":true,"exampleType":"examples"},"responses":{"e71b526c-1b47-4472-a470-e593e41d4c1d":{"description":"The matching lines as JSON: `total`, `truncated`, `lines` (each with the projected columns, `{}` when none were named, its `line_index` within the row's text and the line, cut to an excerpt around the literal), `groups_total` (distinct `group_by` values among the matches; 0 when none was named) and, when a `group_by` column was named and lines matched, `groups` with the line count per value (most lines first, at most 500 groups). At most `limit` lines (500 by default and at most; 0 for the counts alone); the total and the group counts cover every match.","content":{"application/json":{"schema":{"type":"object","description":"What a find found.","required":["total","truncated","lines","groups_total"],"properties":{"groups_total":{"type":"integer","description":"Distinct values of the `group_by` column among the matches, before\nthe group cap; 0 when no column was named.","minimum":0,"isRequired":true,"uniqueKey":"groups_total","typeLabel":"integer"},"lines":{"type":"array","items":{"type":"object","description":"One matched line.","required":["columns","line_index","line"],"properties":{"columns":{"type":"object","description":"The projected columns' values, by name.","isRequired":true,"uniqueKey":"lines.items.[INDEX].columns","typeLabel":"object"},"line":{"type":"string","description":"The line, cut to an excerpt around the first occurrence of the\nliteral when it is long; a cut edge is marked with `…`.","isRequired":true,"uniqueKey":"lines.items.[INDEX].line","typeLabel":"string"},"line_index":{"type":"integer","description":"The line's position within its row's text, counted from 0.","minimum":0,"isRequired":true,"uniqueKey":"lines.items.[INDEX].line_index","typeLabel":"integer"},"file_line":{"oneOf":[{"type":"integer","format":"int64","description":"The line's own number in the source, when the rows carry one: the\nrow's first line (the request's `line_base` column) plus\n`line_index`. The number to cite. Absent when no column places the\nrow.","uniqueKey":"lines.items.[INDEX].file_line.oneOf.0","typeLabel":"integer\u003cint64>"},{"type":"null","format":"int64","description":"The line's own number in the source, when the rows carry one: the\nrow's first line (the request's `line_base` column) plus\n`line_index`. The number to cite. Absent when no column places the\nrow.","uniqueKey":"lines.items.[INDEX].file_line.oneOf.1","typeLabel":"null"}],"uniqueKey":"lines.items.[INDEX].file_line","typeLabel":"integer\u003cint64> | null"}},"uniqueKey":"lines.items.[INDEX]","typeLabel":"object"},"description":"The first `limit` matched lines, ordered by the projected values\n(numbers numerically), then by where the line sits in its source,\nthen by `line_index` within the row, then by the line text. So the\nlines of one source come back in the order they appear in it, and a\ntruncated answer is its first `limit` lines rather than an arbitrary\n`limit` of them.","isRequired":true,"uniqueKey":"lines","typeLabel":"object[]"},"total":{"type":"integer","description":"Matched lines in all, before the limit.","minimum":0,"isRequired":true,"uniqueKey":"total","typeLabel":"integer"},"truncated":{"type":"boolean","description":"Whether `lines` holds fewer than `total`.","isRequired":true,"uniqueKey":"truncated","typeLabel":"boolean"},"groups":{"type":"array","items":{"type":"object","description":"Lines per distinct value of the `group_by` column.","required":["value","lines"],"properties":{"lines":{"type":"integer","description":"Matched lines in the group, counted over every match.","minimum":0,"isRequired":true,"uniqueKey":"groups.items.[INDEX].lines","typeLabel":"integer"},"value":{"description":"The group's value of the `group_by` column, as the column holds it:\na string, a number, a boolean or null. The engine's row id comes as\nits digits in a string, since a JSON number cannot carry it exactly.","isRequired":true,"uniqueKey":"groups.items.[INDEX].value","typeLabel":"any"}},"uniqueKey":"groups.items.[INDEX]","typeLabel":"object"},"description":"Per-group counts, absent when no `group_by` column was named or when\nnothing matched: the groups with the most lines first, then by value,\nat most the group cap of them.","uniqueKey":"groups","typeLabel":"object[]"}},"uniqueKey":"","typeLabel":"object"},"example":{"total":3,"truncated":true,"lines":[{"columns":{"path":"src/client.rs","start_line":40},"line_index":3,"file_line":43,"line":" let retry_budget = config.retry_budget;"},{"columns":{"path":"src/client.rs","start_line":40},"line_index":9,"file_line":49,"line":" if attempts > retry_budget {"}],"groups_total":2,"groups":[{"value":"src/client.rs","lines":2},{"value":"src/config.rs","lines":1}]},"examples":{"Example":{"title":"Example","value":{"total":3,"truncated":true,"lines":[{"columns":{"path":"src/client.rs","start_line":40},"line_index":3,"file_line":43,"line":" let retry_budget = config.retry_budget;"},{"columns":{"path":"src/client.rs","start_line":40},"line_index":9,"file_line":49,"line":" if attempts > retry_budget {"}],"groups_total":2,"groups":[{"value":"src/client.rs","lines":2},{"value":"src/config.rs","lines":1}]}}},"exampleType":"examples"}},"exampleType":"examples"},"c653d65d-73a1-41d6-b0ba-959c2a81d70e":{"description":"Invalid request body; a literal with no searchable term (it needs at least one letter or digit) or one that spans lines; the searched column named as a projected or group column; or a database name that is not an identifier.","content":{"_mintlify/placeholder":{"schema":{"type":"object","description":""}}}},"51e9926a-bdf5-43fb-a092-a438cc13c99f":{"description":"Missing or invalid API key.","content":{"_mintlify/placeholder":{"schema":{"type":"object","description":""}}}},"24b04cf1-2a4c-4604-ab9b-22af9a7b8639":{"description":"The account is suspended for non-payment, or its free period has ended.","content":{"_mintlify/placeholder":{"schema":{"type":"object","description":""}}}},"653926fa-2cad-42bf-a263-0b11a3954cf3":{"description":"The agent APIs are not enabled for this account, or the API key lacks read access to this database.","content":{"_mintlify/placeholder":{"schema":{"type":"object","description":""}}}},"36d30638-b69e-4b5b-b8bb-ea66fb17e027":{"description":"The database or the table does not exist.","content":{"_mintlify/placeholder":{"schema":{"type":"object","description":""}}}},"d7f25884-0d41-474c-a5c0-a388a8df5b00":{"description":"The database is being purged.","content":{"_mintlify/placeholder":{"schema":{"type":"object","description":""}}}},"90e219f1-f8c4-4155-93e0-26f95725352b":{"description":"The request asked for a `rerank` and this deployment runs no grading model. Send the request without `rerank`.","content":{"_mintlify/placeholder":{"schema":{"type":"object","description":""}}}},"96b659b3-2d28-448f-8ab8-ad4262073b12":{"description":"The database is still activating, or no capacity is free to serve it. Transient: retry after the `Retry-After` interval.","content":{"_mintlify/placeholder":{"schema":{"type":"object","description":""}}}}},"security":{"1b135d6c-8b60-435a-89b4-8f568af58467":{"api_key":{"type":"http","scheme":"bearer","scopes":[],"schemeName":"api_key"}}},"servers":{"599977cb-8918-427d-9d7b-8a848f5cf332":{"url":"https://api.platform.infino.ws","description":"Infino Cloud"}},"processedSecurityOptions":[{"schemes":[{"scheme":{"type":"http","scheme":"bearer","scopes":[],"schemeName":"api_key"},"schema":{"title":"Bearer Auth","type":"string","isRequired":true,"description":"Bearer authentication header of the form `Bearer \u003ctoken>`, where `\u003ctoken>` is your auth token.","format":"bearer","typeLabel":"string\u003cbearer>","deprecated":false},"schemeName":"api_key","name":"Authorization"}],"title":"api_key"}]},"originalFileLocation":"api-reference/openapi.json"},"subdomain":"infino-29","siteName":"Infino","title":"Find lines - Infino","contextualStarterQuestions":[],"navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"originalFileLocation":"api-reference/agent/find-lines.mdx"},"headHtml":"\u003cscript data-mint-head>(function(){var d=document.documentElement,p=null;if(!p){try{p=localStorage.getItem(\"isDarkMode\")}catch(e){}if(p==='true')p='dark';else if(p==='false')p='light';if(p!=='light'\u0026\u0026p!=='dark'\u0026\u0026p!=='system')p=\"system\"}var r=p==='system'?(matchMedia(\"(prefers-color-scheme: dark)\").matches?'dark':'light'):p;d.classList.remove(r==='dark'?'light':'dark');d.classList.add(r);d.setAttribute(\"data-theme-preference\",p)})();\u003c/script>\u003cmeta data-mint-head name=\"description\" content=\"A search at line grain: every line of the column\u0026#x27;s text that holds the literal, with the columns that place it, counted over every match. Preview: this route may change between releases. It needs the agent APIs enabled on your account, and answers 403 until they are.\">\u003cmeta data-mint-head name=\"application-name\" content=\"Infino\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/docs/mintlify-assets/_mintlify/favicons/infino-29/QxzEBvRaDzIUbPUA/_generated/favicon/android-chrome-192x192.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"apple-touch-icon\" type=\"image/png\" sizes=\"180x180\" href=\"/docs/mintlify-assets/_mintlify/favicons/infino-29/QxzEBvRaDzIUbPUA/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/docs/mintlify-assets/_mintlify/favicons/infino-29/QxzEBvRaDzIUbPUA/_generated/favicon/favicon-16x16.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/docs/mintlify-assets/_mintlify/favicons/infino-29/QxzEBvRaDzIUbPUA/_generated/favicon/favicon-32x32.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/docs/mintlify-assets/_mintlify/favicons/infino-29/QxzEBvRaDzIUbPUA/_generated/favicon/favicon.ico\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/docs/mintlify-assets/_mintlify/favicons/infino-29/QxzEBvRaDzIUbPUA/_generated/favicon-dark/android-chrome-192x192.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/docs/mintlify-assets/_mintlify/favicons/infino-29/QxzEBvRaDzIUbPUA/_generated/favicon-dark/favicon-16x16.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/docs/mintlify-assets/_mintlify/favicons/infino-29/QxzEBvRaDzIUbPUA/_generated/favicon-dark/favicon-32x32.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/docs/mintlify-assets/_mintlify/favicons/infino-29/QxzEBvRaDzIUbPUA/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"Find lines - Infino\">\u003cmeta data-mint-head property=\"og:description\" content=\"A search at line grain: every line of the column\u0026#x27;s text that holds the literal, with the columns that place it, counted over every match. Preview: this route may change between releases. It needs the agent APIs enabled on your account, and answers 403 until they are.\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"Infino\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://infino.ai/docs/api-reference/agent/find-lines\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://infino-29.mintlify.site/docs/images/og-card.png\">\u003cmeta data-mint-head property=\"og:image:width\" content=\"1200\">\u003cmeta data-mint-head property=\"og:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"twitter:card\" content=\"summary_large_image\">\u003cmeta data-mint-head name=\"twitter:title\" content=\"Find lines - Infino\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"A search at line grain: every line of the column\u0026#x27;s text that holds the literal, with the columns that place it, counted over every match. Preview: this route may change between releases. It needs the agent APIs enabled on your account, and answers 403 until they are.\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://infino-29.mintlify.site/docs/images/og-card.png\">\u003cmeta data-mint-head name=\"twitter:image:width\" content=\"1200\">\u003cmeta data-mint-head name=\"twitter:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"msapplication-config\" content=\"/docs/mintlify-assets/_mintlify/favicons/infino-29/QxzEBvRaDzIUbPUA/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"Infino\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#d24011\">\u003clink data-mint-head rel=\"canonical\" href=\"https://infino.ai/docs/api-reference/agent/find-lines\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/docs/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/docs/api-reference/agent/find-lines.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://infino.ai/#organization\",\"name\":\"Infino\",\"url\":\"https://infino.ai\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/infino-29/sXqDYmwcZ7BW4kvO/logo/infino-logo.png?fit=max\u0026auto=format\u0026n=sXqDYmwcZ7BW4kvO\u0026q=85\u0026s=6bf8ba5e6249a14bb302a90e30e5e18f\"}},{\"@type\":\"WebSite\",\"@id\":\"https://infino.ai/docs#website\",\"name\":\"Infino\",\"url\":\"https://infino.ai/docs\",\"publisher\":{\"@id\":\"https://infino.ai/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://infino.ai/docs/api-reference/agent/find-lines#webpage\",\"url\":\"https://infino.ai/docs/api-reference/agent/find-lines\",\"name\":\"Find lines\",\"description\":\"A search at line grain: every line of the column's text that holds the literal, with the columns that place it, counted over every match. Preview: this route may change between releases. It needs the agent APIs enabled on your account, and answers 403 until they are.\",\"isPartOf\":{\"@id\":\"https://infino.ai/docs#website\"},\"breadcrumb\":{\"@id\":\"https://infino.ai/docs/api-reference/agent/find-lines#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://infino.ai/docs/api-reference/agent/find-lines#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"REST API\",\"item\":\"https://infino.ai/docs/api-reference/rows/append-rows\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Find lines\",\"item\":\"https://infino.ai/docs/api-reference/agent/find-lines\"}]},{\"@type\":[\"TechArticle\",\"APIReference\"],\"@id\":\"https://infino.ai/docs/api-reference/agent/find-lines#apireference\",\"headline\":\"Find lines\",\"name\":\"Find lines\",\"description\":\"A search at line grain: every line of the column's text that holds the literal, with the columns that place it, counted over every match. Preview: this route may change between releases. It needs the agent APIs enabled on your account, and answers 403 until they are.\",\"url\":\"https://infino.ai/docs/api-reference/agent/find-lines\",\"mainEntityOfPage\":{\"@id\":\"https://infino.ai/docs/api-reference/agent/find-lines#webpage\"},\"image\":\"https://infino.ai/images/og-card.png\",\"publisher\":{\"@id\":\"https://infino.ai/#organization\"},\"isPartOf\":{\"@id\":\"https://infino.ai/docs#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"Infino\",\"publisher\":{\"@type\":\"Organization\",\"name\":\"Infino\"},\"provider\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","agentPointerHref":"/docs/api-reference/agent/find-lines.md","siteName":"Infino","nav":{"global":null,"tabs":[{"tab":"Documentation","pages":[{"title":"Documentation","href":""}]},{"tab":"Integrations","pages":[{"title":"Integrations","href":"/integrations/mcp"}]},{"tab":"Tutorials","pages":[{"title":"Tutorials","href":"/tutorials"}]},{"tab":"Use Cases","pages":[{"title":"Use Cases","href":"/use-cases"}]},{"tab":"Demos","pages":[{"title":"Demos","href":"/demos"}]},{"tab":"API Reference","groups":[{"group":"SDKs \u0026 CLI","pages":[{"title":"Overview","icon":"code","href":"/api-reference"},{"title":"Local vs Infino Cloud","icon":"table-columns","href":"/api-reference/parity"},{"title":"Infino CLI: create tables, ingest, and search","icon":"terminal","href":"/cli"}]},{"group":"REST API","pages":[{"group":"Rows","pages":[{"title":"Append rows","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json post /v1/append/{database}","href":"/api-reference/rows/append-rows"},{"title":"Delete rows","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json post /v1/delete/{database}","href":"/api-reference/rows/delete-rows"},{"title":"Update rows","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json post /v1/update/{database}","href":"/api-reference/rows/update-rows"}]},{"group":"Search","pages":[{"title":"BM25 full-text search","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json post /v1/bm25_search/{database}","href":"/api-reference/search/bm25-full-text-search"},{"title":"Count matches","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json post /v1/count/{database}","href":"/api-reference/search/count-matches"},{"title":"Exact match","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json post /v1/exact_match/{database}","href":"/api-reference/search/exact-match"},{"title":"Hybrid search","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json post /v1/hybrid_search/{database}","href":"/api-reference/search/hybrid-search"},{"title":"Run a SQL query","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json post /v1/query_sql/{database}","href":"/api-reference/search/run-a-sql-query"},{"title":"Token match","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json post /v1/token_match/{database}","href":"/api-reference/search/token-match"},{"title":"Vector search","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json post /v1/vector_search/{database}","href":"/api-reference/search/vector-search"}]},{"group":"Tables","pages":[{"title":"Create a table","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json post /v1/create_table/{database}","href":"/api-reference/tables/create-a-table"},{"title":"Drop a table","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json post /v1/drop_table/{database}","href":"/api-reference/tables/drop-a-table"},{"title":"List tables","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json post /v1/list_tables/{database}","href":"/api-reference/tables/list-tables"},{"title":"Describe or change a table's schema","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json post /v1/schema/{database}","href":"/api-reference/tables/describe-or-change-a-tables-schema"}]},{"group":"Databases","pages":[{"title":"List databases","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json get /v1/databases","href":"/api-reference/databases/list-databases"},{"title":"Create a database","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json post /v1/databases","href":"/api-reference/databases/create-a-database"},{"title":"Delete a database","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json delete /v1/databases/{name}","href":"/api-reference/databases/delete-a-database"},{"title":"Verify a storage binding","description":"Prove the database's bring-your-own-bucket grant end to end; workers start only after this passes.","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json post /v1/databases/{name}/storage/verify","href":"/api-reference/databases/verify-a-storage-binding"}]},{"group":"Agent","pages":[{"title":"Find lines","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json post /v1/find/{database}","href":"/api-reference/agent/find-lines"},{"title":"Expand rows through the graph","description":"A caller hands over the rows a search or a statement returned, named by\nthe table they came from, and gets back the rows of every other table\nthose rows point at, with the facts the graph holds for them.\n\nPreview: this route may change between releases. It needs the agent APIs enabled on your account, and answers 403 until they are.","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json post /v1/graph_expand/{database}","href":"/api-reference/agent/expand-rows-through-the-graph"},{"title":"Query graph facts","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json post /v1/graph_facts/{database}","href":"/api-reference/agent/query-graph-facts"},{"title":"Find join keys","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json post /v1/join_keys/{database}","href":"/api-reference/agent/find-join-keys"},{"title":"Ask the retrieval sub-agent","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json post /v1/sub_agent/{database}","href":"/api-reference/agent/ask-the-retrieval-sub-agent"},{"title":"Read a table card","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json get /v1/table_card/{database}","href":"/api-reference/agent/read-a-table-card"},{"title":"Validate a result","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json post /v1/validate/{database}","href":"/api-reference/agent/validate-a-result"}]},{"group":"Hydrate","pages":[{"title":"Get the status of a load","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json get /v1/hydrate/{database}","href":"/api-reference/hydrate/get-the-status-of-a-load"},{"title":"Start a load","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json post /v1/hydrate/{database}","href":"/api-reference/hydrate/start-a-load"},{"title":"Cancel a load, or clear one that has ended","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json delete /v1/hydrate/{database}","href":"/api-reference/hydrate/cancel-a-load-or-clear-one-that-has-ended"},{"title":"Run a sync pass now","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json post /v1/hydrate/{database}/{table}/sync","href":"/api-reference/hydrate/run-a-sync-pass-now"}]}]}]}]},"basePath":"","title":"Find lines - Infino","deploymentId":"dpl_2XYgqAEo2Z87hCspE7GmXvEteEBv","buildId":"dpl_2XYgqAEo2Z87hCspE7GmXvEteEBv","dynamics":["c2aa737661","2b790eda92","b0f84f53ff","a9bb46feb3"],"chunks":["OpenApiReferenceProvider-DNqkp7YS.js","snippetPresets-C38JHxW2.js","utils-5JdO8rlh.js","style-to-object-BY3JEAdk.js","utils-C0Bo3eqZ.js","v4-DIgz8zy6.js","addTypeLabelsToSchema-D-aWhlw8.js","conditional-requirements-CFM0id0Q.js","cloneDeep-BPmIGmRa.js","_Uint8Array-CcjpDbJb.js","isObject-FP1Yky1u.js","ApiExamples-D422jahk.js","usePlaygroundInputsStore-osHAJtpm.js","shallow-Gw98mn20.js","isEqual-X71_hSCS.js","CodeSnippets-D5iZ7Wia.js","CodeSnippet-Br0gsSYf.js","use-playground-group-access-D2GsZl7r.js","Page-Tji5sfbr.js","api-description-markdown-Dl9akA3Z.js","DynamicMarkdown-nQmF4d4W.js","SectionHeading-_u13RW5t.js","MethodPill-DvROsJQF.js","getPastedJson-Df88_Idg.js","Check2Icon-CFIe--gy.js","axios-CsQoIw0U.js","Markdown-BL3fHinh.js","AssistantPageLink-CwNgb7pc.js","dist-D_Pa01uY.js","lib-DMeTj1gb.js","lib-B8HbPgcC.js","katex-Dbtb6Wk7.js","html-void-elements-mCSPHezU.js","marked.esm-CZWythHk.js"]}