typesense / typesense-java

Java client for Typesense
https://typesense.org/docs/latest/api/
Apache License 2.0
59 stars 29 forks source link

Support for federated / multi-search #24

Open Ra0R opened 2 years ago

Ra0R commented 2 years ago

Description

https://typesense.org/docs/0.23.0/api/federated-multi-search.html#multi-search-parameters

It does not seem like the library supports multi-search / feterated. Is this a planned feature?

kishorenc commented 1 year ago

@Ra0R

The client does support multi-search. Check the example here: https://github.com/typesense/typesense-java/blob/master/src/test/java/org/typesense/api/MultiSearchTest.java#L75

psyklopz commented 1 year ago

A type for MultiSearchParameters exists, but it doesn't appear that any API calls use that type. I'd much prefer to use a strict type than the HashMaps shown in the above example.

This allows the compiler to enforce that the fields are named appropriately.