#community-help

Creating URLs for CPU Spike Test with Typesense

TLDR Mubashirullah requested help with creating urls for a CPU spike test using Typesense. Kishore Nallan guided them through the process, directing them to the necessary documentation and confirming how to format the get query. Mubashirullah successfully figured out the solution with the given guidance.

Powered by Struct AI
Dec 23, 2021 (25 months ago)
Mubashirullah
Photo of md5-cea7a558edb0c66a1c07dfdcf00bc141
Mubashirullah
11:48 AM
I'm creating a url.txt file for seige to test the cpu spike on our dataset. Can someone give me some guidance on how to create these urls? So far I was working with the python library and know how to use that.

# ${TYPESENSE_HOST}/collections/:collection/documents/search


Kishore Nallan
Photo of md5-4e872368b2b2668460205b409e95c2ea
Kishore Nallan
11:50 AM
Check the shell tab on all the examples in the docs.
Mubashirullah
Photo of md5-cea7a558edb0c66a1c07dfdcf00bc141
Mubashirullah
12:04 PM
I make a url.txt file and each line contains something like this without the curl?
Kishore Nallan
Photo of md5-4e872368b2b2668460205b409e95c2ea
Kishore Nallan
12:08 PM
Yes but in the get query format. The above example uses multi_search which uses post request.
Mubashirullah
Photo of md5-cea7a558edb0c66a1c07dfdcf00bc141
Mubashirullah
12:34 PM
curl -H "X-TYPESENSE-API-KEY: Hu52dwsas2AdxdE" \
"\
filter_by=status:=[Cancelled]&sort_by=sortable_id:asc"
12:34
Mubashirullah
12:34 PM
This is so cool. It worked. How do I do it on the browser now.
12:35
Mubashirullah
12:35 PM
it ends up searching on google
01:32
Mubashirullah
01:32 PM
Ive figured it out.
I can enter the header in the commandline. So just the http part in the url file and then run
seige -H "X-TYPESENSE-API-KEY: Hu52dwsas2AdxdE" 
01:32
Mubashirullah
01:32 PM
Thank you for your help ❤️

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

Benchmarks and Concurrent Users for Typesense

A inquired about the number of concurrent users Typesense can support. Jason suggested benchmarking for better accuracy, while Kishore Nallan mentioned about an upcoming feature. Jason and Kishore Nallan both recommended tools and gave references for performing benchmarks.

4

11
33mo

Understanding and Implementing Typesense Dart Library with Flutter

Alexandro sought help with the Typesense Dart library. Jason explained that the library is in progress, discussed utilizing other HTTP libraries, and provided detailed instructions on utilizing Typesense with Flutter. Alexandro provided feedback on the Typesense UI and expressed interest in creating a tutorial video.

10

82
32mo

Troubleshooting Typesense Connection Issue and Data Retrieval

Felix encountered issues connecting to a server-created typesense and retrieving data collections. Kishore Nallan and Jason provided guidance, highlighting errors in the original code and suggesting changes to the URL and curl command.

63
24mo

Resolving Typesense Server Connection with Correct API Keys and Paths

Rubai had trouble creating a working API key for Typesense and understanding number_hits versus num_documents. Jason provided clarification and correct code for generating a search-only API Key and using correct server configurations.

1

30
4mo

Resolving Issues with Scoped API Keys in Typesense with Golang

Suvarna had problems with generating and using scoped API keys in Typesense with Golang. Several bugs misleading the user were found and fixed by Kishore Nallan.

6

158
28mo