#community-help

Prioritizing Multi-field Search Results in Java

TLDR suraj asks how to prioritize search results for multiple fields in Java. Kishore Nallan suggests using query by weights and provides Java client version 0.0.11-beta1 for Typesense.

Powered by Struct AI
6
6mo
Solved
Join the chat
Apr 10, 2023 (6 months ago)
suraj
Photo of md5-396118c791d531ff7af8cd473d5b26ff
suraj
12:11 PM
Hi, How to use prioritize result when searching through multiple fields, I have gone through documentation where I came across text_match_type keyword.
However I am not able to get this field in java implementation, I am using 0.0.10 version, Also which is the latest version of java I can use, did not find this in doc
Kishore Nallan
Photo of md5-4e872368b2b2668460205b409e95c2ea
Kishore Nallan
01:03 PM
Use query by weights to give priority to fields being queried.
Apr 11, 2023 (6 months ago)
suraj
Photo of md5-396118c791d531ff7af8cd473d5b26ff
suraj
06:26 AM
Kishore Nallan which is the latest version of typesense for java coz, when I use 0.24.0 it does not download from maven repo
Kishore Nallan
Photo of md5-4e872368b2b2668460205b409e95c2ea
Kishore Nallan
06:30 AM
0.24.0 is Typesense server version, not Java client version. For java client, try 0.0.11-beta1
suraj
Photo of md5-396118c791d531ff7af8cd473d5b26ff
suraj
06:34 AM
okay Cool
06:34
suraj
06:34 AM
Thanks!!