The name of the corresponding Solr index field is "comment" ( http://design.xwiki.org/xwiki/bin/view/Design/SolrSchema#HDocumentFields ). Note that only the last version of a document is being indexed. So each time you modify and save a document the corresponding row on the Solr index is updated. Thus you will be able to search only for the comment of the last revision.
Hope this helps, Marius On Tue, Mar 7, 2017 at 10:33 PM, gp wang <cet...@msn.com> wrote: > Hi All, > > > How to search revision comment of a document in xwiki? Does solr index the > version info of a doc? > > I made a change of this page: > http://localhost:8080/xwiki/bin/edit/Main/SolrSearchConfig > > {{velocity output="false"}} > #set ($__defaultSolrConfig = { > 'queryFields': { > 'DOCUMENT': 'title^10.0 name^10.0 version^10.0 > doccontent^2.0 > ... > > > Thanks. > > wgp > >