[id='using-analyzers_{context}']
= Using analyzers with remote caches
Analyzers convert input data into terms that you can index and query.
You specify analyzer definitions with the `@Text` annotation in your Java classes or directly in Protobuf schema.

.Procedure

. Annotate the property with the `@Text` annotation to indicate that its value is analyzed.
. Use the `analyzer` attribute to specify the desired analyzer that you want to use for indexing and searching.

.Protobuf schema
[source,protobuf,options="nowrap",role="primary"]
----
include::protobuf/testentity.proto[]
----

.Java classes
[source,java,options="nowrap",role="secondary"]
----
include::code_examples/AnalyzerDefinitions.java[]
----
