Invalid numeric attribute('''), attribute not specified in numericAttributesForFiltering setting wereas it is actually specified

I am trying to use a range filter to filter my hits by price. It use to work likea charm but for some days, I cant manage to use my filter. I have the message :
ApiError: invalid numeric attribute(currentPriceIncludingVatAndFees), attribute not specified in numericAttributesForFiltering setting

But, my settings are OK. I tried also to set numericAttributesForFiltering to null to allow all numeric attributes. But no results

Here is my settings : { "settings": { "minWordSizefor1Typo": 4, "minWordSizefor2Typos": 8, "hitsPerPage": 20, "maxValuesPerFacet": 100, "searchableAttributes": [ "brand.de_DE", "brand.en_GB", "brand.es_ES", "brand.fr_FR", "brand.it_IT", "brand.nl_BE", "brand.pt_PT", "model.de_DE", "model.en_GB", "model.es_ES", "model.fr_FR", "model.it_IT", "model.nl_BE", "model.pt_PT", "vehicleConfiguration.de_DE", "vehicleConfiguration.en_GB", "vehicleConfiguration.es_ES", "vehicleConfiguration.fr_FR", "vehicleConfiguration.it_IT", "vehicleConfiguration.nl_BE", "vehicleConfiguration.pt_PT", "typology.de_DE", "typology.en_GB", "typology.es_ES", "typology.fr_FR", "typology.it_IT", "typology.nl_BE", "typology.pt_PT", "fuelType.de_DE", "fuelType.en_GB", "fuelType.es_ES", "fuelType.fr_FR", "fuelType.it_IT", "fuelType.nl_BE", "fuelType.pt_PT", "color.de_DE", "color.en_GB", "color.es_ES", "color.fr_FR", "color.it_IT", "color.nl_BE", "color.pt_PT" ], "numericAttributesForFiltering": [ "currentPriceIncludingVatAndFees", "auctionEndAt", "productionDate.de_DE", "productionDate.en_GB", "productionDate.es_ES", "productionDate.fr_FR", "productionDate.it_IT", "productionDate.nl_BE", "productionDate.pt_PT", "seatingCapacity.de_DE", "seatingCapacity.en_GB", "seatingCapacity.es_ES", "seatingCapacity.fr_FR", "seatingCapacity.it_IT", "seatingCapacity.nl_BE", "seatingCapacity.pt_PT", "mileageFromOdometer.de_DE", "mileageFromOdometer.en_GB", "mileageFromOdometer.es_ES", "mileageFromOdometer.fr_FR", "mileageFromOdometer.it_IT", "mileageFromOdometer.nl_BE", "mileageFromOdometer.pt_PT" ], "attributesToRetrieve": null, "decompoundedAttributes": {}, "distinct": false, "unretrievableAttributes": null, "optionalWords": null, "attributesForFaceting": [ "currentPriceIncludingVatAndFees", "auctionEndAt", "productionDate.de_DE", "productionDate.en_GB", "productionDate.es_ES", "productionDate.fr_FR", "productionDate.it_IT", "productionDate.nl_BE", "productionDate.pt_PT", "seatingCapacity.de_DE", "seatingCapacity.en_GB", "seatingCapacity.es_ES", "seatingCapacity.fr_FR", "seatingCapacity.it_IT", "seatingCapacity.nl_BE", "seatingCapacity.pt_PT", "mileageFromOdometer.de_DE", "mileageFromOdometer.en_GB", "mileageFromOdometer.es_ES", "mileageFromOdometer.fr_FR", "mileageFromOdometer.it_IT", "mileageFromOdometer.nl_BE", "mileageFromOdometer.pt_PT", "state", "region", "exclusive", "brand.de_DE", "brand.en_GB", "brand.es_ES", "brand.fr_FR", "brand.it_IT", "brand.nl_BE", "brand.pt_PT", "model.de_DE", "model.en_GB", "model.es_ES", "model.fr_FR", "model.it_IT", "model.nl_BE", "model.pt_PT", "vehicleConfiguration.de_DE", "vehicleConfiguration.en_GB", "vehicleConfiguration.es_ES", "vehicleConfiguration.fr_FR", "vehicleConfiguration.it_IT", "vehicleConfiguration.nl_BE", "vehicleConfiguration.pt_PT", "dateVehicleFirstRegistered.de_DE", "dateVehicleFirstRegistered.en_GB", "dateVehicleFirstRegistered.es_ES", "dateVehicleFirstRegistered.fr_FR", "dateVehicleFirstRegistered.it_IT", "dateVehicleFirstRegistered.nl_BE", "dateVehicleFirstRegistered.pt_PT", "typology.de_DE", "typology.en_GB", "typology.es_ES", "typology.fr_FR", "typology.it_IT", "typology.nl_BE", "typology.pt_PT", "fuelType.de_DE", "fuelType.en_GB", "fuelType.es_ES", "fuelType.fr_FR", "fuelType.it_IT", "fuelType.nl_BE", "fuelType.pt_PT", "color.de_DE", "color.en_GB", "color.es_ES", "color.fr_FR", "color.it_IT", "color.nl_BE", "color.pt_PT", "registrationCountry.de_DE", "registrationCountry.en_GB", "registrationCountry.es_ES", "registrationCountry.fr_FR", "registrationCountry.it_IT", "registrationCountry.nl_BE", "registrationCountry.pt_PT", "originCountry.de_DE", "originCountry.en_GB", "originCountry.es_ES", "originCountry.fr_FR", "originCountry.it_IT", "originCountry.nl_BE", "originCountry.pt_PT", "segment.de_DE", "segment.en_GB", "segment.es_ES", "segment.fr_FR", "segment.it_IT", "segment.nl_BE", "segment.pt_PT", "bodyType.de_DE", "bodyType.en_GB", "bodyType.es_ES", "bodyType.fr_FR", "bodyType.it_IT", "bodyType.nl_BE", "bodyType.pt_PT", "vehicleTransmission.de_DE", "vehicleTransmission.en_GB", "vehicleTransmission.es_ES", "vehicleTransmission.fr_FR", "vehicleTransmission.it_IT", "vehicleTransmission.nl_BE", "vehicleTransmission.pt_PT", "options.de_DE", "options.en_GB", "options.es_ES", "options.fr_FR", "options.it_IT", "options.nl_BE", "options.pt_PT", "equipments.de_DE", "equipments.en_GB", "equipments.es_ES", "equipments.fr_FR", "equipments.it_IT", "equipments.nl_BE", "equipments.pt_PT", "driveWheelConfiguration.de_DE", "driveWheelConfiguration.en_GB", "driveWheelConfiguration.es_ES", "driveWheelConfiguration.fr_FR", "driveWheelConfiguration.it_IT", "driveWheelConfiguration.nl_BE", "driveWheelConfiguration.pt_PT", "seatingCapacity.de_DE", "seatingCapacity.en_GB", "seatingCapacity.es_ES", "seatingCapacity.fr_FR", "seatingCapacity.it_IT", "seatingCapacity.nl_BE", "seatingCapacity.pt_PT", "numberOfDoors.de_DE", "numberOfDoors.en_GB", "numberOfDoors.es_ES", "numberOfDoors.fr_FR", "numberOfDoors.it_IT", "numberOfDoors.nl_BE", "numberOfDoors.pt_PT", "categories.de_DE", "categories.en_GB", "categories.es_ES", "categories.fr_FR", "categories.it_IT", "categories.nl_BE", "categories.pt_PT", "critAirNorm.de_DE", "critAirNorm.en_GB", "critAirNorm.es_ES", "critAirNorm.fr_FR", "critAirNorm.it_IT", "critAirNorm.nl_BE", "critAirNorm.pt_PT", "euroNorm.de_DE", "euroNorm.en_GB", "euroNorm.es_ES", "euroNorm.fr_FR", "euroNorm.it_IT", "euroNorm.nl_BE", "euroNorm.pt_PT" ], "attributesToSnippet": null, "attributesToHighlight": null, "paginationLimitedTo": 1000, "attributeForDistinct": null, "exactOnSingleWordQuery": "attribute", "ranking": [ "asc(state)", "asc(currentPrice)", "desc(auctionEndAt)", "typo", "geo", "words", "filters", "proximity", "attribute", "exact", "custom" ], "customRanking": null, "separatorsToIndex": "", "removeWordsIfNoResults": "none", "queryType": "prefixLast", "highlightPreTag": "<em>", "highlightPostTag": "</em>", "snippetEllipsisText": "", "alternativesAsExact": [ "ignorePlurals", "singleWordSynonym" ], "indexLanguages": [], "renderingContent": { "facetOrdering": { "facets": { "order": [] } } } }, "rules": [], "synonyms": [] }

Thanks in advance for your kind help

Finally my problem was due to my implementation of suggestions. The 2 differents Indexes were wrongly cohabiting

1 Like

Glad you were able to figure it out!