How to enable search-indexing on versions

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

 Adobe

Dapatkan bantuan lebih cepat dan lebih mudah

Pengguna baru?

Adobe MAX 2024

Adobe MAX
Konferensi Kreativitas

14–16 Oktober Miami Beach dan online

Adobe MAX

Konferensi Kreativitas

14–16 Oktober Miami Beach dan online

Adobe MAX 2024

Adobe MAX
Konferensi Kreativitas

14–16 Oktober Miami Beach dan online

Adobe MAX

Konferensi Kreativitas

14–16 Oktober Miami Beach dan online