I have the following Algolia request:
index.setSettings({
getRankingInfo : 1,
attributesToIndex:"name,colour,style,material,category",
hitsPerPage: 50,
ignorePlurals : false,
attributesToRetrieve : "objectID",
restrictSearchableAttributes :
"name,colour,style,material,category",
typoTolerance: "strict",
queryType: "prefixNone",
page : skipParameter
});
index.search(query, function(error, content) {
....
})
However, some of the settings don't seem to be applied to the search. For instance, it retrieves all attributes and I'm pretty sure the searchable attributes aren't restricted. Furthermore, the ranking info isn't returned as can be seen by the returned JSON with the hits post-emptied which means it is definitely not accepting at least that setting.
{"hits":[],"nbHits":173,"page":0,"nbPages":4,"hitsPerPage":50,"processingTimeMS":3,
"query":"Red sofa","params":"query=Red%20sofa"}
I'm running this code in a Parse.com cloud code search method if that may have an effect on the outcome?