diff --git a/java/client/src/main/java/glide/api/models/commands/FT/FTProfileOptions.java b/java/client/src/main/java/glide/api/models/commands/FT/FTProfileOptions.java index 5a33c8ca1c..5d9b7e892d 100644 --- a/java/client/src/main/java/glide/api/models/commands/FT/FTProfileOptions.java +++ b/java/client/src/main/java/glide/api/models/commands/FT/FTProfileOptions.java @@ -109,7 +109,7 @@ public FTProfileOptions( */ public FTProfileOptions( @NonNull GlideString query, @NonNull FTSearchOptions options, boolean limited) { - queryType = QueryType.AGGREGATE; + queryType = QueryType.SEARCH; commandLine = concatenateArrays(new GlideString[] {query}, options.toArgs()); this.limited = limited; }