Resolving Error Code 404 on Facet Field Search
TLDR gab asked why there's a 404 error when searching facet fields with no documents. Kishore Nallan clarified it's due to attempting to facet on a non-'facet: true' field.
Powered by Struct AI
3
24mo
Solved
Nov 04, 2021 (24 months ago)
gab
gab
08:18 AMHi,
Why searching on a facet field that exist on the schema but where no documents are found give a 404 error ? Shouldn't it be just an empty results?
I got error like this "Could not find a facet field named
Why searching on a facet field that exist on the schema but where no documents are found give a 404 error ? Shouldn't it be just an empty results?
I got error like this "Could not find a facet field named
a_field_name
in the schema."Kishore Nallan
Kishore Nallan
03:44 PMYou should get that error only when you try to facet on a field that exists in the schema but is not marked as
facet: true
Nov 05, 2021 (24 months ago)
gab
gab
12:28 PMThanks for clarification about this error, I will double check that
Typesense
Lightning-fast, open source search engine for everyone | Knowledge Base powered by Struct.AI
Indexed 2779 threads (79% resolved)
Similar Threads
Fixing 404 Error in Geo-Search UI
Nathan faced a 404 error in geo-search UI. Jason suggested removing the double quotes to fix the issue.
3
4mo
Solved
Troubleshooting Facet Field Issue in QueryBy Clause
gab had an issue using a facet field in the queryBy clause. They found the solution by using 'collectionSpecificSearchParameters'. Kishore Nallan affirmed.
3
21mo
Solved
Difficulty in Searching Schema Returns No Results
Robert cannot search anything in a schema they have defined and populated with data. Kishore Nallan asks for a reproducible example.
5
27mo