Greetings, everyone :wave: Is there something like...
# community-help
m
Greetings, everyone 👋 Is there something like a cache on Typesense? I swapped my index and I'm getting
Copy code
Unhandled Rejection (Error): 404 - Could not find a facet field named `amount` in the schema.
Double checked all the code - there is no reference to amount anywhere else 🤷‍♂️
Copy code
22 | try {
  23 |   typesenseResponse = await this._adaptAndPerformTypesenseRequest(instantsearchRequests);
  24 | 
> 25 |   const adaptedResponses = typesenseResponse.results.map((typesenseResult, index) => {
     | ^  26 |     this._validateTypesenseResult(typesenseResult);
  27 |     const responseAdapter = new SearchResponseAdapter(
  28 |       typesenseResult,
it breaks the app as soon the results are returned. And results actually have
amount
field 🤔
k
Can you check the actual search query being sent?
j
do you have that field marked as "facet: true"?
m
Checking...
k
This error message happens if your search query has a facet_by=amount but that amount field is not marked as facet: true in the collection schema.
m
Interesting 🤔
Copy code
facet_by: "amount"
and it's quite possible that collection don't have item with that field. Checking dashboard now 😅
Weird though that I don't set it anywhere in the code... 😅
j
You’d have to set “amount” as facet: true in the Collection’s schema as well