README.md in aliyun_open_search-0.3.2 vs README.md in aliyun_open_search-0.3.3
- old
+ new
@@ -86,9 +86,27 @@
query: "config=start:0,hit:10,format=fulljson&&query=default:'的'&&filter=create_timestamp>1423000000&&sort=+type;-RANK&fetch_fields=id;title;body;url;type;create_timestamp",
first_formula_name: "first_bbs",
formula: "second_bbs",
summary: "summary_snipped:1,summary_field:title,summary_element:high,summary_len:32,summary_ellipsis:...;summary_snipped:2,summary_field:body,summary_element:high,summary_len:60,summary_ellipsis:..."
}
+# 更多例子
+
+# params = {
+# query: [
+# [
+# "query=default:'#{value}'",
+# "cars_company_id:'#{value}'",
+# "cars_shop_id:'#{value}'",
+# "default:'#{value}'",
+# "configuration:'#{value}'",
+# "user_info:'#{value}'",
+# "authority_roles:'#{value}'",
+# ].join(" OR "),
+#
+# "config=start:#{page},hit:#{params[:per_page]}"
+# ],
+# fetch_fields: :id
+# }
AliyunOpenSearch::Search.new("test", "test2", "test3").execute(params)
```