typesense-java icon indicating copy to clipboard operation
typesense-java copied to clipboard

Support for federated / multi-search

Open Ra0R opened this issue 2 years ago • 2 comments

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?

Ra0R avatar Nov 25 '22 10:11 Ra0R

@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

kishorenc avatar Dec 01 '22 09:12 kishorenc

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.

psyklopz avatar Dec 20 '22 18:12 psyklopz