Изменения документа Solr Suggestion Macros

Редактировал(а) Андрей Ганьков 2023/08/30 17:08

От версии 2.1
отредактировано Андрей Ганьков
на 2023/08/30 17:08
Изменить комментарий: Install extension [org.xwiki.platform:xwiki-platform-search-solr-ui/15.7]
К версии 1.1
отредактировано Андрей Ганьков
на 2020/03/30 19:12
Изменить комментарий: Install extension [org.xwiki.platform:xwiki-platform-search-solr-ui/12.1]

Сводка

Подробности

Свойства страницы
Содержимое
... ... @@ -110,12 +110,7 @@
110 110   #set ($limit = 3)
111 111   #end
112 112   #set ($discard = $query.setLimit($limit))
113 - #set ($macro.results = $query.execute()[0].results)
114 - #foreach ($result in $macro.results)
115 - #set ($resultReference = $services.solr.resolve($result))
116 - #set ($result.location = "#hierarchy($resultReference {'local': true, 'excludeSelf': true, 'plain': true})")
117 - #end
118 118   #set ($results = $NULL)
119 - #setVariable("$results" $macro.results)
114 + #setVariable("$results" $query.execute()[0].results)
120 120  #end
121 121  {{/velocity}}