// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
impl super::Client {
/// Constructs a fluent builder for the [`SearchPublicRecords`](crate::operation::search_public_records::builders::SearchPublicRecordsFluentBuilder) operation.
/// This operation supports pagination; See [`into_paginator()`](crate::operation::search_public_records::builders::SearchPublicRecordsFluentBuilder::into_paginator).
///
/// - The fluent builder is configurable:
/// - [`search_query(impl Into<String>)`](crate::operation::search_public_records::builders::SearchPublicRecordsFluentBuilder::search_query) / [`set_search_query(Option<String>)`](crate::operation::search_public_records::builders::SearchPublicRecordsFluentBuilder::set_search_query):<br>required: **false**<br>Free-text natural-language query (ARD `text`). Drives semantic + lexical ranking.<br>
/// - [`filters(Document)`](crate::operation::search_public_records::builders::SearchPublicRecordsFluentBuilder::filters) / [`set_filters(Option<Document>)`](crate::operation::search_public_records::builders::SearchPublicRecordsFluentBuilder::set_filters):<br>required: **false**<br>Structured filter narrowing the results, in the grammar of Agent Registry's SearchDiscoverableRegistryRecords `filters`: `$eq`, `$ne` and `$in` on a field, with `$and` or `$or` over single-condition objects, never nested. Fields are `identifier`, `domain`, `recordType`, `descriptorType`, `provenance` and `recordVersion`, and `identifier` also takes `$prefix`. For example `{"recordType": {"$eq": "AGENT"}}` or `{"$or": \[{"recordType": {"$eq": "MCP"}}, {"domain": {"$eq": "acme.com"}}\]}`. Limits, the same ones Agent Registry applies: at most 10 conditions, `$in` takes 1-25 values, values are strings of 1-512 characters, and `{}` is invalid. A `document` can't carry `@length`, so the service enforces these and answers a filter past them with a ValidationException, as Agent Registry does.<br>
/// - [`max_results(i32)`](crate::operation::search_public_records::builders::SearchPublicRecordsFluentBuilder::max_results) / [`set_max_results(Option<i32>)`](crate::operation::search_public_records::builders::SearchPublicRecordsFluentBuilder::set_max_results):<br>required: **false**<br>Max records per page. Default 20, max 100.<br>
/// - [`next_token(impl Into<String>)`](crate::operation::search_public_records::builders::SearchPublicRecordsFluentBuilder::next_token) / [`set_next_token(Option<String>)`](crate::operation::search_public_records::builders::SearchPublicRecordsFluentBuilder::set_next_token):<br>required: **false**<br>Opaque composite-cursor pagination token (O-DM12).<br>
/// - On success, responds with [`SearchPublicRecordsOutput`](crate::operation::search_public_records::SearchPublicRecordsOutput) with field(s):
/// - [`records(Vec::<PublicRecord>)`](crate::operation::search_public_records::SearchPublicRecordsOutput::records): The records that match the search, most relevant first.
/// - [`next_token(Option<String>)`](crate::operation::search_public_records::SearchPublicRecordsOutput::next_token): The token to pass in a later request to get the next page of results. Absent when there are no more results.
/// - On failure, responds with [`SdkError<SearchPublicRecordsError>`](crate::operation::search_public_records::SearchPublicRecordsError)
pub fn search_public_records(&self) -> crate::operation::search_public_records::builders::SearchPublicRecordsFluentBuilder {
crate::operation::search_public_records::builders::SearchPublicRecordsFluentBuilder::new(self.handle.clone())
}
}