cancel
Showing results for 
Search instead for 
Did you mean: 

Index control options

mrsaqib
Champ in-the-making
Champ in-the-making
I am confused with the content options provided by alfresco, Is there any difference between them? any priority or performance difference?

1. IN reposity.properties file
lucene.indexer.contentIndexingEnabled=true
This property controls whether or not the content of the documents is indexed. If false, content is not indexed.

2. In contentModel.xml file, we can control the indexing by <index enabled="true" or "false">

<type name="cm:content">
        <title>Content</title>
        <parent>cm:cmobject</parent>
        <properties>
           <property name="cm:content">
              <type>d:content</type>
              <mandatory>false</mandatory>
              <index enabled="true">
                 <atomic>false</atomic>
                 <stored>false</stored>
                 <tokenised>true</tokenised>
              </index>
           </property>
        </properties>
     </type>

3. In the same file
<aspect name="cm:indexControl">
         <title>Index Control</title>
         <properties>
            <property name="cm:isIndexed">
               <title>Is indexed</title>
               <type>d:boolean</type>
               <default>true</default>
            </property>
            <property name="cm:isContentIndexed">
               <title>Is content indexed</title>
               <type>d:boolean</type>
               <default>true</default>
            </property>
         </properties>
      </aspect>
     
2 REPLIES 2

abarisone
Star Contributor
Star Contributor
Hi,
in general the difference is that the former setting apply to all items in your repository, whereas the latter is an aspect that can be set on another object, say folder, content tyoe, etc.
In my experience I used to exclude content from indexing when no content search is required.

Regards,
Andrea

mrsaqib
Champ in-the-making
Champ in-the-making
Hi,
in general the difference is that the former setting apply to all items in your repository, whereas the latter is an aspect that can be set on another object, say folder, content tyoe, etc.
In my experience I used to exclude content from indexing when no content search is required.

Regards,
Andrea

Thanks  abarisone