Moving from Algolia to Typesense: Questions and Answers
TLDR Juan sought advice from Kishore Nallan about moving from Algolia to Typesense, handling MultiSearch, setting parameters, checking imported documents, and a specific syntax query.
1
Feb 07, 2022 (21 months ago)
Juan
10:33 AMKishore Nallan
10:34 AMJuan
10:43 AMIf i were to perform a MultiSearch, would there be any way to set the amount of hits to return and also, if it was possible, how would I use "pages"? I see on the responses that there is the key
page
.Kishore Nallan
10:44 AMper_page
and page
parameters for each search query in the multi_search request.Kishore Nallan
10:46 AMIn this example you see two different
q
parameters being sent to two different collections. Likewise you can send any parameter.Juan
10:47 AMKishore Nallan
10:49 AMKishore Nallan
10:51 AM1
Juan
10:52 AMKishore Nallan
10:52 AMFeb 08, 2022 (21 months ago)
Juan
02:20 PMper_page: 1
:[
{
facet_counts: [],
found: 2,
hits: [ [Object] ],
out_of: 2,
page: 1,
request_params: { collection_name: 'dev_users', per_page: 1, q: 'Xh4H' },
search_time_ms: 0
},
{
facet_counts: [],
found: 0,
hits: [],
out_of: 0,
page: 1,
request_params: { collection_name: 'dev_machines', per_page: 1, q: 'Xh4H' },
search_time_ms: 0
}
]
I would like to know if its possible to know if pagination is possible, currently the only way that i think its possible is by calculating the length of hits, checking
out_of
and also checking the current page
. Is there any simpler way?Kishore Nallan
02:56 PMJuan
03:33 PMFeb 15, 2022 (21 months ago)
Juan
09:53 AMtypesense.collections(environment + '_' + collection).documents().import(records, { action: 'upsert' });
Kishore Nallan
09:54 AMJuan
10:01 AMJuan
10:05 AMJuan
10:06 AMKishore Nallan
10:27 AMKishore Nallan
10:28 AMMar 04, 2022 (20 months ago)
Juan
01:01 PMBTW, wanted to check if the syntax is correct here:
im performing a multi search in different collections with this syntax: (pic 1)
and im filtering by name, but im receiving a result that doesnt match at all (ch4pdemo)
Wanted to check if im doing anything wrong, thanks
Mar 05, 2022 (20 months ago)
Kishore Nallan
03:34 AMTypesense
Indexed 2779 threads (79% resolved)
Similar Threads
Querying with Typesense-Js and Handling Null Values
michtio was querying using typesense-js and receiving fewer results than expected. Kishore Nallan suggested using different query parameters. Further discussion led to the handling of 'null' values and filtering syntax in the search queries. The thread ended with Jason offering migration support from Algolia to Typesense.
Resolve Facets and Sorting Issues with Typesense
Ethan needed assistance with getting all facet values and sorting results by date using Typesense. Jason provided guidance on how to use Typesense properties to accomplish these tasks, and resolved issues related to specific use-cases provided by Ethan and Rushil.
Phrase Search Relevancy and Weights Fix
Jan reported an issue with phrase search relevancy using Typesense Instantsearch Adapter. The problem occurred when searching phrases with double quotes. The team identified the issue to be related to weights and implemented a fix, improving the search results.
Multiple Filters and JSON Requests in Typesense
Manish asked about multiple filter_by arguments, JSON input, and using multisearch. Jason offered typesense documentation links, examples, and how to use JSON formatted requests with multisearch. Ed shared a similar use case.
Querying and Indexing Multiple Elements Issues
Krish queried fields with multiple elements, which Kishore Nallan suggested checking `drop_tokens_threshold`. Krish wished to force OR mode for token, but Kishore Nallan admitted the feature was missing. Krish was able to resolve the issue with url encoding.