We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d609b65 commit c7cfa78Copy full SHA for c7cfa78
1 file changed
src/index.js
@@ -71,7 +71,16 @@ const prepareSolrClient = config => ({
71
rollback: () => Error("not implemented yet"),
72
spell: () => Error("not implemented yet"),
73
optimize: () => Error("not implemented yet"),
74
- realTimeGet: () => Error("not implemented yet")
+ realTimeGet: () => Error("not implemented yet"),
75
+ facet: (jsonFacet, coreOpt = "") =>
76
+ solrGet(config)("query")(
77
+ {
78
+ q: "*:*", // filtering will be implemented later
79
+ rows: 0,
80
+ "json.facet": JSON.stringify(jsonFacet)
81
+ },
82
+ coreOpt
83
+ )
84
})
85
86
module.exports = {
0 commit comments