Question

How is it possible to search for versions?

Answer

Per default, versions that reside in the virtually mounted /jcr:system tree are not indexed thus not searchable. If you want to be able to search for versions as well, you need to enable the search-index in the repository.xml of CRX. The <SearchIndex> configuration block needs to be added as a child element of <Repository>:

<Repository>
...

   <SearchIndex class="com.day.crx.query.lucene.LuceneHandler">
      <param name="path" value="${rep.home}/repository/index"/>
      <param name="queryClass" value="com.day.crx.query.lucene.CRXQueryImpl"/>
      <param name="respectDocumentOrder" value="false"/>
   </SearchIndex>
...

</Repository>

Applies to

CRX

이 작업에는 Creative Commons Attribution-Noncommercial-Share Alike 3.0 Unported License의 라이센스가 부여되었습니다.  Twitter™ 및 Facebook 게시물은 Creative Commons 약관을 적용받지 않습니다.

법적 고지 사항   |   온라인 개인 정보 보호 정책