#community-help

Resolving Attribute Issue with Instantsearch Adapter

TLDR Stefan had a problem using the Instantsearch adapter for multi-index searches. Jason suggests a workaround and asks for a Github issue to be opened. Issue was opened by Stefan and will be reviewed by Jason.

Powered by Struct AI
Apr 13, 2021 (34 months ago)
Stefan
Photo of md5-d6c265b4792dbf0a1d6ae378f39d8736
Stefan
11:36 AM
it works if both indexes have the same attribute
Kishore Nallan
Photo of md5-4e872368b2b2668460205b409e95c2ea
Kishore Nallan
01:09 PM
cc Jason
Jason
Photo of md5-8813087cccc512313602b6d9f9ece19f
Jason
03:24 PM
Stefan are you using the instantsearch adapter?
Stefan
Photo of md5-d6c265b4792dbf0a1d6ae378f39d8736
Stefan
05:23 PM
Yes
Apr 14, 2021 (34 months ago)
Jason
Photo of md5-8813087cccc512313602b6d9f9ece19f
Jason
05:22 AM
Stefan You could instantiate two instances of instantsearch, and two instances of the adapter with different queryBy s.
Stefan
Photo of md5-d6c265b4792dbf0a1d6ae378f39d8736
Stefan
05:41 AM
doable not pretty though. I guess that would also mean that 2 queries are necessary instead of one
Jason
Photo of md5-8813087cccc512313602b6d9f9ece19f
Jason
05:51 AM
Yeah not ideal. Could you open a Github issue, with a code example showing the widgets you're using to do multi index search?
Stefan
Photo of md5-d6c265b4792dbf0a1d6ae378f39d8736
Stefan
09:03 AM
I will do that
Jason
Photo of md5-8813087cccc512313602b6d9f9ece19f
Jason
04:11 PM
Perfect, thank you. I’ll look into it shortly.

Typesense

Lightning-fast, open source search engine for everyone | Knowledge Base powered by Struct.AI

Indexed 3015 threads (79% resolved)

Join Our Community

Similar Threads

Configuring Multi Index Search with Typesense Instantsearch

sonu struggled with setting up multi index search in Typesense Instantsearch. Jason shared a pre-release version that allowed for collection specific search parameters, which resolved the issue.

6
32mo

Multi-Index Search with Typesense Instantsearch Adapter

Ailish needed help with multi-index search using the Typesense instantsearch adapter. Kishore Nallan explained the server API separates these search requests, but can be merged using business logic. Jason suggested building custom widgets to do a multi-search request and aggregate scores on the client side.

7
22mo

Typesense Sorting Query and Bug Report

michtio is new to Typesense and is querying sorting implementation. Jason shares resources and suggests use of specific adapters. However, michtio shares a bug found when applying a filter on Typesense. Jason asks for a GitHub issue to be opened for the bug.

14
18mo

Resolving Index Error with Typesense in InstantSearch

Jamshid experienced errors during a multi-index search using Typesense due to a discrepancy in indices. Jason fixed the issue by suggesting the use of `ais-index` to avoid the error.

1

13
4mo

Modifying Typesense's OR on filter_by & Multi-Query Workaround

Carl inquired about Typesense's OR on filter_by and multi-query workaround. Kishore Nallan gave an estimated timeline and a workaround for the OR query. Jason suggested custom widget creation for precise search queries and Dynamic Filtering rule set up.

3

11
22mo