Stay organized with collections
Save and categorize content based on your preferences.
Content and code samples on this page are subject to the licenses described in the Content License. Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.
Last updated 2025-05-20 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-05-20 UTC."],[],[],null,["# androidx.appsearch.annotation\n=============================\n\n*** ** * ** ***\n\n[Kotlin](/reference/kotlin/androidx/appsearch/annotation/package-summary \"View this page in Kotlin\") \\|Java\n\nAnnotations\n-----------\n\n|---------------------------------------------------------------------------------------------------------------|----------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| [Document](/reference/androidx/appsearch/annotation/Document) | Marks a class as an entity known to AppSearch containing a data record. |\n| [Document.BlobHandleProperty](/reference/androidx/appsearch/annotation/Document.BlobHandleProperty) | Configures an [androidx.appsearch.app.AppSearchBlobHandle](/reference/androidx/appsearch/app/AppSearchBlobHandle) field of a class as a property known to AppSearch. |\n| [Document.BooleanProperty](/reference/androidx/appsearch/annotation/Document.BooleanProperty) | Configures a boolean member field of a class as a property known to AppSearch. |\n| [Document.BuilderProducer](/reference/androidx/appsearch/annotation/Document.BuilderProducer) | Marks a static method or a builder class directly as a builder producer. |\n| [Document.BytesProperty](/reference/androidx/appsearch/annotation/Document.BytesProperty) | Configures a byte array member field of a class as a property known to AppSearch. |\n| [Document.CreationTimestampMillis](/reference/androidx/appsearch/annotation/Document.CreationTimestampMillis) | Marks a member field of a document as the document's creation timestamp. |\n| [Document.DocumentProperty](/reference/androidx/appsearch/annotation/Document.DocumentProperty) | Configures a member field of a class as a property known to AppSearch. |\n| [Document.DoubleProperty](/reference/androidx/appsearch/annotation/Document.DoubleProperty) | Configures a double-precision decimal number field of a class as a property known to AppSearch. |\n| [Document.EmbeddingProperty](/reference/androidx/appsearch/annotation/Document.EmbeddingProperty) | Configures an [EmbeddingVector](/reference/androidx/appsearch/app/EmbeddingVector) field of a class as a property known to AppSearch. |\n| [Document.Id](/reference/androidx/appsearch/annotation/Document.Id) | Marks a member field of a document as the document's unique identifier (ID). |\n| [Document.LongProperty](/reference/androidx/appsearch/annotation/Document.LongProperty) | Configures a 64-bit integer field of a class as a property known to AppSearch. |\n| [Document.Namespace](/reference/androidx/appsearch/annotation/Document.Namespace) | Marks a member field of a document as the document's namespace. |\n| [Document.Score](/reference/androidx/appsearch/annotation/Document.Score) | Marks a member field of a document as the document's query-independent score. |\n| [Document.StringProperty](/reference/androidx/appsearch/annotation/Document.StringProperty) | Configures a string member field of a class as a property known to AppSearch. |\n| [Document.TtlMillis](/reference/androidx/appsearch/annotation/Document.TtlMillis) | Marks a member field of a document as the document's time-to-live (TTL). |\n\nClasses\n-------\n\n|---------------------------------------------------------------------------------------------------------------------------------|---|\n| [Document.LongProperty.DefaultSerializer](/reference/androidx/appsearch/annotation/Document.LongProperty.DefaultSerializer) | |\n| [Document.StringProperty.DefaultSerializer](/reference/androidx/appsearch/annotation/Document.StringProperty.DefaultSerializer) | |"]]