Published Updated

Many business questions use known identifiers, dates, classifications, relationships, and status. FormKiQ’s attribute search and configured composite keys can support known lookup patterns without requiring content search. The right choice depends on query flexibility, freshness, authorisation, and the workload you actually measure.
Start with a query inventory: what users ask, which fields or content they search, which results they may see, and how complete and current the answer must be. Treat the patterns below as design choices to validate in your deployment.
We see operational retrieval and content discovery as complementary parts of a document platform. “Find this contract” and “find clauses about assignment” need different evidence that the search worked. A ranked list should not silently become the authoritative population for a business action.
Choose the simplest search path that meets the query’s requirements, then prove its coverage, freshness, permissions, and cost. Keep stable document and business identifiers across the paths so a discovery result can lead back to the governed record. Adding a search engine should expand useful queries without weakening control of the underlying documents.
Retrieval starts with a known fact: invoice number, contract ID, employee ID, case number, vendor, date range, status, or classification. The user expects exact and complete results.
Discovery starts with language: documents discussing a topic, clauses similar to an example, references to a concept, or content containing a phrase. The user expects ranked relevance and may refine the query.
The two modes have different correctness models. An operational report must account for every qualifying record within its stated scope and cutoff; a relevance-ranked first page is insufficient. Topic discovery can use curated topic metadata or a separate retrieval system that matches meaning. Use an explicit semantic-retrieval design when conceptual similarity is required.
Metadata search works well for:
Start with DynamoDB-backed POST /search for supported attribute filters. In FormKiQ v1.19.2, a query can combine supported criteria without a covering composite key. Configure keys in the site or classification schema for frequent combinations that benefit from fewer candidate reads. Test range behaviour, latency, and traversal of all continuation pages with representative data. Check whether existing documents need reindexing after a key change.
Predictable lookup patterns are a strong fit for configured composite keys. When users build changing combinations of metadata filters, Boolean conditions, sort orders, and aggregations, OpenSearch may be the better fit even if they never search document text. Its value includes flexible structured queries, alongside linguistic discovery.
For example, an analyst may combine vendor, currency, amount range, approval status, and receipt date, then change the grouping for the next question. Rather than preparing a composite key for each anticipated combination, evaluate the OpenSearch path over the indexed fields. In FormKiQ, advanced queries use /queryFulltext; supported multi-attribute criteria are also available through /searchFulltext. Despite their endpoint names, these paths can query metadata.
Ad hoc queries still depend on populated fields, appropriate mappings, index coverage, and authorisation. New fields or changed field types may require configuration and reindexing. Evaluate that operational work and indexing delay against the flexibility users need.
Aggregation questions ask for a summary of the matching population: how many invoices are pending per vendor, what amount is outstanding in each currency, how intake volume changes by month, or how document amounts are distributed. OpenSearch supports bucket and metric aggregations for grouping records and calculating measures such as sums and averages. These can support configured operational dashboards and exploratory analysis without returning every matching document to the browser.
Define the unit being counted: indexed documents, current agreements, invoices, or distinct cases. Versions and attachments can inflate a document count. Use suitable numeric, date, and exact-value fields, state the time zone and data cutoff, and keep different currencies separate unless a defined conversion is applied. Check bucket limits and any approximate results before describing an aggregation as exhaustive. Permission filtering must govern the aggregate population as well as individual hits.
OpenSearch analytics describe the data available in its index. Historical workflow trends require retained events or snapshots; a current status field cannot reconstruct past transitions. For reconciled financial reporting, complex joins across systems, or long-term analytical models, assess a reporting store or warehouse alongside the search layer.
Full-text search is useful when users need language-aware matching, phrase queries, fuzzy matching, relevance ranking, highlighting, or queries across extracted text. Available behaviour depends on the engine, analyzers, indexed fields, and query configuration. Test representative languages and phrases against the selected backend.
For both ad hoc metadata queries and content search, evaluate index cost, refresh delay, mapping changes, reindexing, storage duplication, regional placement, and authorisation filtering alongside the query flexibility.
| Query | Preferred starting point |
|---|---|
| Contract ID equals C-10492 | Metadata or direct ID lookup. |
| Active agreements expiring in 90 days | DynamoDB-backed attribute search. Test the status and expiry criteria together, then measure whether a composite key improves the recurring query. |
| Changing combinations of vendor, status, dates, and amount, grouped for analysis | OpenSearch over indexed metadata, with supported filters and aggregations. |
| Pending invoices by vendor, totals per currency, or monthly intake trends | OpenSearch bucket and metric aggregations over appropriately indexed data. |
| Documents containing “change of control” | Full-text phrase query with tested analyzer behaviour. |
| Meaning-based retrieval or natural-language questions over a selected collection | FormKiQ KnowledgeBase module, using Amazon Bedrock Knowledge Bases or an S3 Vectors-based retrieval implementation. |
| All documents related to claim 8821 | Entity relationship or metadata lookup. |
| Handwritten notes mentioning a product name | Supported handwriting extraction followed by indexed text search; measure missed matches. |
FormKiQ’s KnowledgeBase module supports retrieval by meaning and natural-language questions over a selected document collection. The implementation can use Amazon Bedrock Knowledge Bases or Amazon S3 Vectors, depending on the retrieval and application requirements.
Bedrock Knowledge Bases provides a managed ingestion and retrieval workflow, with generated answers when configured. An S3 Vectors-based implementation stores and searches embeddings, with document preparation, embedding generation, source references, and any answer generation connected through the retrieval workflow. These options can also be combined: Bedrock Knowledge Bases can use S3 Vectors as its vector store.
Since November 16, 2026, S3 Vectors supports full-text and hybrid queries for custom retrieval. Use an ENHANCED index, configure searchable text fields, and write the extracted text alongside the vectors. If readers search for both a clause identifier and paraphrases of its meaning, compare full-text, vector-only, and hybrid results on the same test collection. Include current document permissions and source references in the tests. Confirm which query modes your installed retrieval integration actually exposes.
For teams building a separate AWS retrieval pipeline, OpenSearch Serverless intelligent ingestion can parse supported S3 documents, generate embeddings, and populate a vector index in a NextGen collection. Include both ingestion and collection charges in the comparison. Before indexing governed documents, test how the retrieval application enforces current document permissions and how it removes a superseded or withdrawn version from results.
A separate vector retrieval application can also evaluate AWS’s November 29 cost-optimized vector storage on a provisioned OpenSearch 3.9 domain using OI2 instances in supported Regions. This requires its own index and retrieval application. In a pilot, compare total cost, retrieval quality, and latency for frequently and rarely accessed documents, using the permissions and update patterns the application must support.
AWS added OpenSearch Serverless ingest pipelines on November 17, 2026. If a separate application already sends extracted text or structured records to an index, evaluate moving field normalisation or supported chunking into an index-time pipeline. For example, simulate a pipeline that standardises a vendor field and check that the document version and access attributes survive the transformation. Measure indexing latency and cost and test how failures surface before enabling it on live writes. Treat this as separately configured AWS functionality and keep extraction, authorisation, and deletion checks in the application design.
Define the collection, document versions, chunking, embedding model, retrieval permissions, and relevance tests for the module’s implementation. Similarity results are candidates for review, not proof that every relevant document was found. Inspect the source passage before using it in a business decision, and validate generated answers against their source references.
A metadata query is only as complete as its populated attributes, index coverage, and traversal of results. Define how missing values, duplicates, deleted records, and changed classifications are handled. For reports, record the query scope and cutoff and reconcile against the authoritative population. Pagination over changing data may need a snapshot or reconciliation strategy.
At the database layer, DynamoDB Query applies filters after reading a page. An empty page can still have a continuation key, and global secondary indexes offer eventual consistency. Filtering alone does not make an unsupported attribute combination into an efficient lookup. In an application, follow the search API’s continuation contract and test its consistency behaviour.
For content search, track extraction and indexing states separately from document receipt. A new document, corrected OCR result, or deleted record can take time to appear or disappear in a secondary index. Show pending or failed processing to operators, define a freshness target, and reconcile the index after retries or rebuilds. “No matches” should not be presented as proof of absence when coverage is incomplete.
Search indexes often duplicate document content and metadata. A user should not receive a restricted title, snippet, count, or facet merely because the underlying file download would later be denied.
Enforce the applicable site and document access policy before exposing results, including snippets, facets, counts, exports, and cached responses. Test how permission revocation, group changes, deletion, and reclassification affect each path. Recheck access when the document is opened; a previously permitted search result should not grant continuing access.
If indexed permission attributes can lag behind current policy, define a safe handling strategy for that interval. Removing unauthorised hits from one ranked page is insufficient if aggregates still reveal them or the application claims a complete result set. Any final authorisation checks must also be reflected in pagination and the information returned to the user. A retention hold concerns preservation; it does not automatically define who may search the record.
A full-text engine cannot find text that OCR failed to extract. Measure OCR coverage by document type, language, scan quality, handwriting, and layout. Record the source document version, extraction service/configuration, and processing outcome. Assess whether reprocessing improves coverage before replacing an indexed text rendition, and keep the source-to-index relationship traceable.
Validate critical identifiers and retain them as structured attributes alongside the OCR text. For a service-portal example, see finding the right manual by part number, including approved alternate codes, supplier context and applicable revisions.
Test metadata reports against a known qualifying population, including all pages, stable ordering, missing fields, and changes during traversal. Test content retrieval with representative queries, human-reviewed relevant documents, missed matches, ranking quality, zero-result cases, and permission boundaries. Keep correctness criteria separate from speed.
Track tail latency, read/write or service costs, index size, extraction cost, refresh delay, and rebuild duration under realistic concurrency. Include index maintenance and backfill work in the comparison. A small proof of value should demonstrate the query model; a production estimate also needs representative volumes and operational costs.
For a provisioned Amazon OpenSearch Service domain, record the engine version and its support dates. AWS’s support schedule extends support for OpenSearch 2.3 through 2.9 to November 7, 2027. From November 7, 2026, the extension adds a surcharge equal to instance charges; storage charges are unaffected. Include that cost when comparing an upgrade with continued operation.
The FormKiQ v1.19.2 release notes document Enhanced Search v1.11.0, an optional module whose OpenSearch CloudFormation template defaults to 3.9 and supports in-place engine upgrades. Check the installed module version and the engine running on the existing domain before applying a template change.
For OpenSearch 1.3 or 2.x, AWS requires 2.19 before 3.x. Run the pre-upgrade checks and reindex incompatible older indexes as required. An in-place upgrade cannot be rolled back on the same domain. Test the target version with representative documents, comparing phrase matches, facets, totals, and permission-filtered results. If you need to validate before cutover or roll back afterward, assess AWS’s clone-based upgrade for your version path and domain configuration, including the cost of both clusters during the rollback window.
A practical interface can combine exact filters with full-text discovery. Users first limit site, document type, entity, date, status, or sensitivity, then search language within the authorised subset.
Selective filters can improve relevance and narrow the search, but their cost and effect depend on the backend and query plan. Distinguish an exhaustive filtered report from ranked discovery in the interface. A ranked top-k list should be labelled and evaluated as such, even when it includes exact metadata filters.
Illustrative configuration exercise, not a performance benchmark. A contracts team needs both a complete renewal worklist and a way to discover assignment clauses.
For active agreements expiring within 90 days, define accepted status values, the date boundary and time zone, and the treatment of missing expiry dates. Use a supported structured query plan and reconcile every result page against the expected population.
For “change of control,” run a tested phrase query over the authorised, indexed contract versions. Show extraction or indexing failures to the operator. For meaning-based retrieval or natural-language questions, use the KnowledgeBase module with the selected Bedrock Knowledge Bases or S3 Vectors implementation and inspect the source passages.
Each hit links to its document ID and the version used for extraction. Recheck current permissions and inspect the source clause before accepting it as evidence for a renewal decision.
Change an expiry date, revoke a reviewer’s access, and replace a scanned contract. Verify the freshness target, permission enforcement, and linkage to the current version across both search paths.
FormKiQ’s search documentation distinguishes DynamoDB-backed metadata retrieval from configured Typesense and OpenSearch text search. In FormKiQ v1.19.2, multi-attribute DynamoDB queries can combine criteria without a covering composite key. Configured composite keys can reduce candidate reads; additional filtering can require more reads and continuation pages. Earlier deployments may require a covering key.
Depending on the installed backend, text search uses /search with Typesense or /searchFulltext with OpenSearch; /queryFulltext exposes advanced OpenSearch queries. The Enhanced Full-Text Search add-on supplies the OpenSearch path. Confirm edition, modules, configuration, and supported query shapes in the target deployment.
Use the composite-key and OpenSearch comparison for query selection and the result-projection guide for the fields the screen needs to display.
Match predictable lookups to supported attribute queries and composite keys. Evaluate OpenSearch for changing metadata combinations as well as content search, and prove each path against its acceptance criteria. Use the KnowledgeBase module for meaning-based retrieval and knowledge-backed questions, with Bedrock Knowledge Bases or S3 Vectors selected for the implementation. Scope collection access, source references, and any answer generation explicitly. The module complements the metadata and full-text query paths described above.
Use metadata for known business dimensions, full text for document language, and semantic retrieval for meaning-based questions. Combine those paths where needed, and test authorisation, freshness, relevance, completeness, and cost against representative queries before choosing the architecture.
Explore FormKiQ's Enhanced Full-Text Search module, AI document processing, and KnowledgeBase module.
Talk to FormKiQ about metadata queries, search analytics, knowledge retrieval, authorisation, and operating cost.
The open-source foundation — API-first, deployable into your own AWS account, and free to use. Right for architecture validation and early implementation.
Production-ready editions for departments and complex workflows. Start with a Proof-of-Value deployment or go straight to production.
For governance-heavy environments with residency, sovereignty, assurance, and multi-jurisdiction requirements. Talk to us about the right deployment model.