Query

public final class Query implements AutoCloseable

Entry point for querying document content. A holds a built, in-memory search index over a document (or a file / folder / prebuilt index) and answers ranked text-search questions against it — the "index once, query many" model. Build one with the static / factories, then call on the returned instance as often as you like. The ranking itself lives in the engine-independent NativeSDK.Search assembly; this licensed, bridge-exposed facade applies the entitlement gate and delegates.

Functions

Link copied to clipboard
public final void close()
Closes this resource and releases any associated native resources.
Link copied to clipboard
public final static Query createIndex(Document document)
Build a over any document, regardless of its source format.
public final static Query createIndex(String input, DocumentSettings settings)
Build a from a file path — a text/Markdown (.md/.txt) file, a directory of them (searched as one attributed corpus), or a prebuilt index.
Link copied to clipboard
public final String textSearch(String query)
Ranked BM-25 search over this Query's built index — the "index once, query many" path.