SmartDocumentSearch class

Smart Document Search - Universal intelligent search for ALL OCR documents.

Supports all document types:

  • KYC Documents: Aadhaar, PAN, Passport, Voter ID, Driving License
  • Financial Documents: Bank SOA, Loan Statement, Cheque
  • Vehicle Documents: RC, Insurance

Understands natural language queries and returns structured answers.

Example queries:

  • "name" → Returns actual name from any document
  • "aadhaar number" → Returns: "1234 5678 9012"
  • "pan" → Returns: "ABCDE1234F"
  • "passport number" → Returns passport number
  • "voter id" / "epic" → Returns EPIC number
  • "license number" → Returns DL number
  • "loan amount" → Returns: "₹14,79,134.00"
  • "EMI" → Returns EMI amount
  • "cheque number" → Returns cheque number
  • "registration number" → Returns vehicle registration

Constructors

SmartDocumentSearch({required String text, Map<String, String>? extractedFields, String? documentType})

Properties

hashCode → int
The hash code for this object.
no setterinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

getQuickSummary() → Map<String, String>
Get a quick summary of key fields for any document type.
getSuggestions() → List<String>
Get all available fields as suggestions based on document type.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
query(String userQuery) → SmartSearchResult
Process a natural language query and return structured answer.
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited