Aleksei Krasnoperov
07/11/2024, 11:01 PMAleksei Krasnoperov
07/11/2024, 11:04 PM{
"q": "knocked loose",
"query_by": "title,artist",
"query_weight": "1,1",
"filter_by": "hasPlayer:=true && restriction:!=[AllCountries, US]",
"sort_by": "totalViews:desc",
"page": 1,
"per_page": 20,
"exhaustive_search": false
}
Aleksei Krasnoperov
07/11/2024, 11:16 PMcurl "http://${TYPESENSE_HOST}/debug/" \
-H "X-TYPESENSE-API-KEY: ${TYPESENSE_API_KEY}"
/debug endpoint returns the correct state for both the leader and followers. Are there any other endpoints to validate the state?Elliot Sawyer
07/11/2024, 11:28 PMJason Bosco
07/11/2024, 11:31 PMAleksei Krasnoperov
07/12/2024, 12:12 AMsounds like your sending documents to one node directly, and it's not sync'ing to the others?I don't think so. The query with the filter by artistId works equally on all three nodes.
{
"q": "*",
"query_by": "title",
"filter_by": "artistId:=56001 && hasPlayer:=true && restriction:!=[AllCountries, US]",
"sort_by": "totalViews:desc",
"page": 1,
"per_page": 100,
"exhaustive_search": false
}
and here the logs:Aleksei Krasnoperov
07/12/2024, 12:17 AMAleksei Krasnoperov
07/12/2024, 12:33 AMraft_server.cpp:693
and Running GC for aborted requests, req map size: 0
Jason Bosco
07/12/2024, 2:38 AMAleksei Krasnoperov
07/12/2024, 6:15 AM"name": "production_search_2024-07-11_03-00-00",
"num_documents": 301041,
Aleksei Krasnoperov
07/12/2024, 6:19 AMfields: [{
"name": "artist",
"stem": false,
...
}...],
c2/c3:
fields: [{
"name": "artist",
"stem": true,
...
}...],
and collection aws created with stem: true
for this field:
{ name: 'artist', type: 'string', stem: true },
Kishore Nallan
07/13/2024, 1:10 AMAleksei Krasnoperov
07/13/2024, 1:02 PMknocked loose
artist by it's exact name, even with the simplest possible query:
{
"q": "Knocked Loose",
"query_by": "artist"
}
Not sure what I'm doing wrong.Aleksei Krasnoperov
07/13/2024, 1:09 PMKishore Nallan
07/13/2024, 1:12 PMAleksei Krasnoperov
07/13/2024, 1:13 PMKishore Nallan
07/14/2024, 4:41 PMstem
property which might explain how the servers had different values for the field. I will update this thread with a new build with the fix tomorrow.Kishore Nallan
07/16/2024, 4:45 PM27.0.rc26
Aleksei Krasnoperov
07/16/2024, 4:54 PM