Michael Thomas
01/28/2025, 4:09 PMq
*
count
730
text_match_info
best_field_score
0
best_field_weight
12
fields_matched
4
num_tokens_dropped
1
score
100
tokens_matched
0
typo_prefix_score
255
id
11421815545832784468
It seems like everyone searches for "*"
even tho I expect this to be there (as this is the query entered on page load) - but I'd expect some search terms in there as well? Or is there a specific treshold we need to pass before they enter in there?Michael Thomas
01/28/2025, 4:21 PMlet schema = {
"name": "product_queries",
"fields": [
{"name": "q", "type": "string" },
{"name": "count", "type": "int32" }
]
}
I did not add anything else.Michael Thomas
01/28/2025, 4:47 PM{
"document": {
"count": 1102,
"id": "11421815545832784468",
"q": "*"
},
"highlight": {},
"highlights": [],
"text_match": 100,
"text_match_info": {
"best_field_score": "0",
"best_field_weight": 12,
"fields_matched": 4,
"num_tokens_dropped": 1,
"score": "100",
"tokens_matched": 0,
"typo_prefix_score": 255
}
}
This is the only thing I'm getting in my analytics collection.Michael Thomas
01/28/2025, 4:54 PMsearches: [
{
collection: this.index,
exclude_fields: "embedding",
facet_by: 'sector,contract_type,work_regime,city,post_code',
hidden_hits: this.filters.hidden_hits,
filter_by: this.filters.filterQuery,
page: this.pagination.current,
per_page: this.pagination.itemsPerPage,
q: this.filters.searchQuery || '*',
query_by: "title,description,reference", //embedding
max_facet_values: 100,
sort_by: (this.filters.searchQuery !== '' && this.filters.location.value !== '') ? `_text_match:desc,coordinates(${this.filters.location.value}):asc` : `${this.sorting.type}:${this.sorting.order}`, //_vector_distance:asc
},
{
collection: this.index,
facet_by: "sector,contract_type,work_regime",
page: 1,
per_page: 1,
max_facet_values: 100,
q: "*",
sort_by: "_text_match:desc",
},
]
The second part is to make sure we always have all facet values. And it's necessary in our setup, can we filter for example '*'
or that second search out of the analytics?Michael Thomas
01/28/2025, 4:55 PMMichael Thomas
01/28/2025, 4:55 PMq
param 🤔Jason Bosco
01/28/2025, 5:51 PMq: *
queries during query aggregation. You would have to do that when you query the destination collection, using a filter_by.
But if you're seeing q: *
being written into the destination collection, then that means the aggregation is working. Could you manually send a search with a specific q value, wait for the analytics flush interval period (5 mins on Typesense Cloud) and then check the collection again?Michael Thomas
01/29/2025, 8:32 AM'*'
I'm not seeing any other values whatsoever.
Hence why I'm thinking in a multiSearch approach, the second "fixes" q: "*"
seems to overwrite the one in the initial index.Michael Thomas
01/29/2025, 8:33 AMfacet_by
to simply at all times have all the values to filter on.Jason Bosco
01/29/2025, 6:28 PMMichael Thomas
01/30/2025, 9:17 AMJason Bosco
01/30/2025, 11:37 PMv28.0.rc35
?Michael Thomas
01/31/2025, 8:18 AMFanis Tharropoulos
01/31/2025, 8:19 AMManage Cluster
page inside Typesense Cloud. Also, it's as stable as can be, it's the last release candidate before our upcoming v28
releaseMichael Thomas
01/31/2025, 8:19 AM