Prime The
10/05/2023, 7:15 AMPrime The
10/05/2023, 3:15 PMKishore Nallan
10/05/2023, 3:20 PMPrime The
10/05/2023, 3:33 PMPrime The
10/05/2023, 6:56 PMJason Bosco
10/06/2023, 12:12 AMJason Bosco
10/06/2023, 12:13 AMPrime The
10/10/2023, 6:34 AMPrime The
10/10/2023, 6:34 AMPrime The
10/10/2023, 6:35 AMJason Bosco
10/11/2023, 2:38 PMPrime The
10/11/2023, 6:09 PMPrime The
10/11/2023, 6:10 PMPrime The
10/12/2023, 5:23 AMPrime The
10/12/2023, 5:23 AMJason Bosco
10/12/2023, 4:50 PMcurl '<https://search.hernadi-antikvarium.hu/collections/books/documents/search?q=&query_by=categories&sort_by=_text_match:desc&prioritize_exact_match=true&per_page=5&group_by=DID&facet_query=categories:&facet_by=categories>' -H 'X-TYPESENSE-API-KEY: <API_KEY>'
Essentially empty values for q, and facet_query... Along with a group_by. This group_by is what's slowing down this query to almost 3.5s, and the loading icon shows up during this time.
A couple of solutions to try:
1. Do you intend to show all results when the search bar is clicked? If so, you want to consider adding use_cache=true
as a query parameter.
2. If you don't intend to show all results with no terms entered in the autocomplete, you could check for an empty query in the code and not trigger the request to Typesense if that's the case.Prime The
10/12/2023, 6:13 PMPrime The
10/12/2023, 6:14 PMJason Bosco
10/12/2023, 6:18 PMJason Bosco
10/12/2023, 6:18 PMyou could check for an empty query in the code and not trigger the request to Typesense if that's the case.This might be the solution
Prime The
10/12/2023, 6:21 PMJason Bosco
10/12/2023, 6:21 PMPrime The
10/12/2023, 6:25 PMPrime The
10/12/2023, 6:26 PMJason Bosco
10/12/2023, 6:27 PMGET /debug
will return the versionPrime The
10/12/2023, 6:32 PMJason Bosco
10/12/2023, 6:39 PMq
and query_by: categories
?Prime The
10/12/2023, 6:50 PMPrime The
10/12/2023, 6:50 PMJason Bosco
10/12/2023, 6:51 PMJason Bosco
10/12/2023, 6:52 PMJason Bosco
10/12/2023, 6:53 PMPrime The
10/12/2023, 6:57 PM