cancel
Showing results for 
Search instead for 
Did you mean: 

Unable to search two words seperated with a colon

ashokharnal
Champ in-the-making
Champ in-the-making
I have a document that contains the two words seperated by a colon–  abc:xyz.
I am unable to search for these two words together. For example, entering the following in the Explorer search box produces no results:

'abc:xyz'
"abc:xyz"
abc\:xyz
"abc\:xyz"

Of course I am able to search abc or xyz.
Please let me know how do I search these two words together separated by a colon.
4 REPLIES 4

amitabhandari1
Champ in-the-making
Champ in-the-making
Hi Ashokharnal ,

In Alfresco  when any property is defined using Content Model , you can also decide whether  you want to maintain indexes for the property value.
Indexes has four parameters out of which one is tokenized . see the code snippet below
<property name="custom:name">
               <title>Name</title>
               <type>d:text</type>
            <index enabled="true">
              <atomic>true</atomic>
              <stored>false</stored>
                                <tokenised>false</tokenised>
                         </index>
</property>

In your case if you make tokenised as false  , you should be able to search complete string.

Thanks,

ashokharnal
Champ in-the-making
Champ in-the-making
Dear Amita Bhandari,

I am sorry to have taken your time. The two words abc:xyz are written within the pdf document and are not the value of any property.
I am unable to search these two words together as explained above.

Thanking you

amitabhandari1
Champ in-the-making
Champ in-the-making
Hi Ashokharnal ,

Can you check one thing  , open contentModel.xml file located in tomcat/webapps/alfresco/WEB-INF/classes/alfresco/Model.
Make the highlight change there.
<property name="cm:content">
               <type>d:content</type>
               <mandatory>false</mandatory>
               <!– Although content is marked as indexed atomically it may end up asynchronous –>
               <!– if the content conversion will take too long. Content that does not require conversion –>
               <!– to UTF8 test/plain will always be indexed atomically –>
               <index enabled="true">
                  <atomic>true</atomic>
                  <stored>false</stored>
                 <tokenised>false</tokenised>
               </index>
            </property>

Start the server and varify the result.

Thanks,

ashokharnal
Champ in-the-making
Champ in-the-making
Dear Amita Bhandari,

Many thanks for you help. It did the work.
One more question, if you can please help? Is it possible to know the current status of indexing
in Alfresco, ie whether document content has been fully indexed or indexing task still remains to be
completed?

Thank you once again,

Ashok Kumar Harnal