A Z 1 B
03/26/2021, 1:39 AMinstantsearch.widgets.refinementList({
container: '#refinement-list',
attribute: 'tags',
searchable: true,
searchablePlaceholder: 'Search Tags',
showMore: true,
showMoreLimit: 20,
}),
extra: are search analytics going to be coming to typesense? as in, who searched what and when..
extra2: how many imports can typesense hosted do at one time? I've been doing 1000-2000 imports at a time because higher ones timeoutJason Bosco
03/26/2021, 1:55 AMsearch.addWidgets()
to get the first refinementList to show up?Jason Bosco
03/26/2021, 1:58 AMinstantsearch.addWidgets([instantsearch.widgets.refinementList({...}), instantsearch.widgets.refinementList({...})])
might work...Jason Bosco
03/26/2021, 1:59 AMare search analytics going to be coming to typesense? as in, who searched what and when..We currently don't have server-side analytics in Typesense. Instead I'd recommend using the analytics widget in InstantSearch.js to hook into search queries and send the data to either a web analytics platform like GA / Amplitude, etc or send it to a backend of their choice. With web analytics tools you usually get additional context around search terms like (search terms with the higher conversion rate), which server-side analytics won't be able to do.
Jason Bosco
03/26/2021, 2:01 AMextra2: how many imports can typesense hosted do at one time? I've been doing 1000-2000 imports at a time because higher ones timeoutI've tried imports of up to 3GB in one import call with millions of records on a 16GB RAM, 4vCPU machine. So the answer to your question would depend on the size of the machine you're using.
A Z 1 B
03/26/2021, 2:18 AMA Z 1 B
03/26/2021, 2:18 AMA Z 1 B
03/26/2021, 2:21 AMJason Bosco
03/26/2021, 4:34 AMA Z 1 B
03/26/2021, 4:35 AMA Z 1 B
03/26/2021, 4:36 AMclient.collections.retrieve
which shows a correct number of documents, but the search interface is a few thousand offJason Bosco
03/26/2021, 4:36 AMA Z 1 B
03/26/2021, 4:37 AMA Z 1 B
03/26/2021, 4:37 AMA Z 1 B
03/26/2021, 4:38 AMA Z 1 B
03/26/2021, 4:39 AM"name"=>"mcqs",
"num_documents"=>14506,
"num_memory_shards"=>4},
{"created_at"=>1616719676,
@typesense.collections.retrieve
ETHON: Libcurl initialized
ETHON: performed EASY effective_url=<https://xxx/collections> response_code=200 return_code=ok total_time=0.589906
=> [{"created_at"=>1616732031,
Jason Bosco
03/26/2021, 4:40 AMA Z 1 B
03/26/2021, 4:40 AMA Z 1 B
03/26/2021, 4:40 AMJason Bosco
03/26/2021, 4:40 AMA Z 1 B
03/26/2021, 4:42 AMcurl '<https://xxx.typesense.net/multi_search?x-typesense-api-key=XXX>' -H 'User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:83.0) Gecko/20100101 Firefox/83.0' -H 'Accept: application/json, text/plain, */*' -H 'Accept-Language: en-US,en;q=0.5' --compressed -H 'Referer: <http://localhost:3000/>' -H 'Content-Type: text/plain' -H 'Origin: <http://localhost:3000>' -H 'DNT: 1' -H 'Connection: keep-alive' --data-raw '{"searches":[{"query_by":"id","num_typos":2,"sort_by":"","highlight_full_fields":"id","collection":"mcqs","q":"*","facet_by":"tags,user,multiple_choice_question_classification,published","filter_by":"published:=[true]","max_facet_values":8,"page":1,"facet_query":"tags:h","per_page":0}]}'
A Z 1 B
03/26/2021, 4:42 AMJason Bosco
03/26/2021, 4:43 AMA Z 1 B
03/26/2021, 4:43 AMA Z 1 B
03/26/2021, 4:43 AMA Z 1 B
03/26/2021, 4:43 AMJason Bosco
03/26/2021, 4:44 AMA Z 1 B
03/26/2021, 4:44 AMA Z 1 B
03/26/2021, 4:44 AMA Z 1 B
03/26/2021, 4:44 AMA Z 1 B
03/26/2021, 4:45 AMJason Bosco
03/26/2021, 4:46 AM