次の Algolia リクエストがあります。
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) {
....
})
ただし、一部の設定は検索に適用されないようです。たとえば、すべての属性を取得し、検索可能な属性が制限されていないと確信しています。さらに、返された JSON から分かるように、ランキング情報は返されません。これは、少なくともその設定を受け入れていないことを意味します。
{"hits":[],"nbHits":173,"page":0,"nbPages":4,"hitsPerPage":50,"processingTimeMS":3,
"query":"Red sofa","params":"query=Red%20sofa"}
結果に影響を与える可能性がある場合、Parse.com クラウド コード検索メソッドでこのコードを実行していますか?