Query a table
Changed onQuery table id with vector search, full text search and optional SQL filtering. Returns results in Arrow IPC file or stream format.
REST NAMESPACE ONLY REST namespace returns the response as Arrow IPC file binary data instead of the QueryTableResponse JSON object. The REST response maps to the QueryTableResponse model as follows:
- the Arrow IPC file binary body maps to data
- response headers map to context via the header. prefix (see the Context schema)
Request
- Base URLhttp://localhost:2333
- Auth
- OAuth 2Client credentialsToken URL: /oauth/token
- or HTTP bearer
- or API key in header x-api-key
Path parameters
string identifier of an object in a namespace, following the Lance Namespace spec. When the value is equal to the delimiter, it represents the root namespace. For example, v1/namespace/$/list performs a ListNamespace on the root namespace.
Query parameters
An optional delimiter of the string identifier, following the Lance Namespace spec. When not specified, the $ delimiter must be used.
Request body
Example request
{
"ef": 0,
"offset": 0,
"columns": {
"column_aliases": {
"key": "column_aliases"
},
"column_names": [
"column_names",
"column_names"
]
},
"vector_column": "vector_column",
"fast_search": true,
"k": 0,
"upper_bound": 1.4894159,
"branch": "branch",
"version": 0,
"with_row_id": true,
"prefilter": true,
"filter": "filter",
"refine_factor": 0,
"full_text_query": {
"string_query": {
"columns": [
"columns",
"columns"
],
"query": "query"
},
"structured_query": {
"query": {
"boolean": {
"must_not": [
null,
null
],
"should": [
null,
null
],
"must": [
null,
null
]
},
"phrase": {
"terms": "terms",
"column": "column",
"slop": 0
},
"match": {
"fuzziness": 0,
"terms": "terms",
"column": "column",
"boost": 6.0274563,
"prefix_length": 0,
"operator": "operator",
"max_expansions": 0
},
"boost": {
"negative": null,
"negative_boost": 7.0614014,
"positive": null
},
"multi_match": {
"match_queries": [
{
"fuzziness": 0,
"terms": "terms",
"column": "column",
"boost": 6.0274563,
"prefix_length": 0,
"operator": "operator",
"max_expansions": 0
},
{
"fuzziness": 0,
"terms": "terms",
"column": "column",
"boost": 6.0274563,
"prefix_length": 0,
"operator": "operator",
"max_expansions": 0
}
]
}
}
}
},
"distance_type": "distance_type",
"lower_bound": 3.6160767,
"maximum_nprobes": 1,
"identity": {
"api_key": "api_key",
"auth_token": "auth_token"
},
"bypass_vector_index": true,
"minimum_nprobes": 1,
"nprobes": 0,
"context": {
"key": "context"
},
"vector": {
"single_vector": [
6.846853,
6.846853
],
"multi_vector": [
[
7.4577446,
7.4577446
],
[
7.4577446,
7.4577446
]
]
},
"id": [
"id",
"id"
]
}Response
Query results in Arrow IPC file format
Changes
- info
added the new optional request property
- info
added the new optional request property
- info
- info
added the optional property
to the response with the status - info
added the optional property
to the response with the status - info
added the optional property
to the response with the status - info
added the optional property
to the response with the status - info
added the optional property
to the response with the status - info
added the optional property
to the response with the status
- info