Issues with MultiSearch Function Usage in Typesense Java Client 0.4.0
TLDR suraj faces an error implementing multi-search in Typesense Java client. Kishore Nallan suggests verifying with an example available on GitHub.
Powered by Struct AI
1
2
2mo
Sep 21, 2023 (2 months ago)
suraj
suraj
09:56 AMHi All, I m using 0.4.0 version of typesense for java client. I m trying to implement multi search using below example in link
https://typesense.org/docs/0.25.1/api/federated-multi-search.html#multi-search-parameters
I m getting below error while calling perform method:
The method perform(MultiSearchSearchesParameter, Map<String,String>) in the type MultiSearch is not applicable for the arguments (HashMap<String,List<HashMap<String,String>>>, HashMap<String,String>)
https://typesense.org/docs/0.25.1/api/federated-multi-search.html#multi-search-parameters
I m getting below error while calling perform method:
The method perform(MultiSearchSearchesParameter, Map<String,String>) in the type MultiSearch is not applicable for the arguments (HashMap<String,List<HashMap<String,String>>>, HashMap<String,String>)
Kishore Nallan
Kishore Nallan
10:00 AMDid you check the example here? https://github.com/typesense/typesense-java/blob/master/src/test/java/org/typesense/api/MultiSearchTest.java#L52
1
Typesense
Lightning-fast, open source search engine for everyone | Knowledge Base powered by Struct.AI
Indexed 3011 threads (79% resolved)
Similar Threads
Overcoming Query String Error with Multi-Search in Flutter
Andrew was getting a query string error and tried to switch to multi-search. Jason helped them implement it correctly, clarifying the differences between single and multi-search, and confirmed that the multi-search is unbounded.
9
13mo
Solved
TypeScript Project - Typing Multisearch Response
Yoann had an issue with typing multisearch responses in TypeScript. Jason provided a link to the type, while Yoann suggested a fix and created a PR.
6
6mo
Solved
Creating Multi-search Shell/Curl Query for Java Web Client
Sidharth asked for guidance on creating a Shell or Curl query for multi-search in Java. After discussing with Kishore Nallan, they found the solution.
4
7mo
Solved