我们正在尝试使用Filter和Filter_ [Type]选项搜索评论但不成功,并且教程中缺少示例。
请指导我们。我们曾尝试过以下事情
http://reviews.apitestcustomer.bazaarvoice.com/bvstaging/data/reviews.json?callback=?&apiversion=4.9&include=products,authors&filter=IsRatingsOnly:true&filter=DisplayLocale:en_US&passkey=kuy3zj9pr3n7i0wxajrzj04xo&limit=5
使用上述网址,我们仅过滤了评分
的评论我们正在尝试过滤ReviewText,标题标签。我们尝试了下面列出的网址
http://reviews.apitestcustomer.bazaarvoice.com/bvstaging/data/reviews.json?callback=?&apiversion=4.9&include=products,authors&filter=ReviewText:this is a test&filter=DisplayLocale:en_US&passkey=kuy3zj9pr3n7i0wxajrzj04xo&limit=5
http://reviews.apitestcustomer.bazaarvoice.com/bvstaging/data/reviews.json?callback=?&apiversion=4.9&include=products,authors&filter_[Reviews]=ReviewText:this is a test&filter=DisplayLocale:en_US&passkey=kuy3zj9pr3n7i0wxajrzj04xo&limit=5
http://reviews.apitestcustomer.bazaarvoice.com/bvstaging/data/reviews.json?callback=?&apiversion=4.9&include=products,authors&filter=tag_ReviewText:Morbi bibendum&passkey=kuy3zj9pr3n7i0wxajrzj04xo&limit=5
我们在尝试上述网址时失败。
请指导我们。
答案 0 :(得分:2)
在将数据传递给json时使用search="search_text"
属性来搜索所有评论。