Hello everyone,
I created a macro whose general intent is similar to the one of the LiveTable and LiveData macros except it queries the data over Solr. I understand it could also make sense to provide directly a Solr backend to the LiveData macro however such a backend might be more complex to implement, at least for me
Here’s a demo on the EDNH project’s web site (a European project XWiki SAS contributes to with AFP and several other press agencies) and a syntax example below.
That’d be great if someone could create a code repository and a Jira project for this macro, such as “macro-solrlivedata”, what do you think? Initially I named it “solrLiveTable” but “solrLiveData” might be more appropriate since the layout is a grid, not a table. It uses Velocity macros + JSX (both building on the existing Solr code pages), not Vue. Any feedback, question or recommendation is welcome of course.
{{solrLiveData
query="f_class=XWiki.Article.ArticleClass&f_property.XWiki.Topic.TopicsClass.list_string=topics.health.WebHome&f_locale=en&sort=property.XWiki.Article.ArticleClass.publicationDate_sortDate&sortOrder=desc&hidden=false"
facets="XWiki.Topic.TopicsClass.list,XWiki.Category.CategoriesClass.list"
limit="12"/}}
(we could introduce complementary parameters such as “className”, “filters”, “sort” etc. to make it easier to use)
Cheers
Stéphane