cancel
Showing results for 
Search instead for 
Did you mean: 

Alfresco Share Search in Metadata

joaotpd
Champ on-the-rise
Champ on-the-rise
Hi all!

I'm using Alfresco Share 3.2r2… I develop a new Content Model for working with new types of content. The new types have new properties.

Example:
New type: test_type;
New property: test_property.
<type name="my:test_type">
   <properties>
      <property name="my:test_property">
         <title>Title</title>
         <type>d:text</type>
         <mandatory>false</mandatory>
      </property>
   …
I managed to configure Alfresco Share in a way that I can view and edit that new properties (http://edlovesjava.blogspot.com/2009/07/alfresco-forms-engine-customization.html).

After editing and save the new metadata, for a document that i chose to have "test_type", I perform a search for the new submited text. Say that I enter the text "alfresco test property" in test_property…
And nothing happens (search this site/search all sites)… The search returns 0 documents!!
Is this normal?!Is there a way to easily configure this search?!
Thanks a lot!!

João
22 REPLIES 22

sselvan
Champ in-the-making
Champ in-the-making
Hi,

I am also facing the same issue. If you have already found any clue to this, please let me know.

Thank you

sselvan
Champ in-the-making
Champ in-the-making
Features list of Alfresco Community Edition 3.2 says that there is Single field for Search searching across full text and metadata.

http://wiki.alfresco.com/wiki/Alfresco_Community_Edition_3.2_Share_Feature_List#Search

But it does not work. I assume by the above statement that search on metadata should work by default without any configuration, but looks like it is not.
I tried the same in my Alfresco Explorer, the metadata search works.

I am wondering - the search in Alfresco Share for Metadata has to be configured…

Someone please advice…Did it work in previous versions? Any help is appreciated.

sselvan
Champ in-the-making
Champ in-the-making
A somewhat similar thing has been done in Alfresco as per http://forums.alfresco.com/en/viewtopic.php?f=29&t=22234&p=81834.

<config>
   <client>
      <search-max-results>100</search-max-results>
         <simple-search-additional-attributes>
            <qname>
               {http://www.alfresco.org/model/content/1.0}description
            </qname>
         </simple-search-additional-attributes>
   </client>
</config>

I also added the same code snippet (of web-client-config-custom.xml) like the above post in web-framework-config-custom.xml OR share-config-custom.xml, but that did not help anything.

Any help is appreciated!

Thank you

ssaravanan
Champ in-the-making
Champ in-the-making
I tried as well, I logged into share.alfresco.com and uploaded a pdf, edited the metadata ,
added some text to the description , then searched for the keyword in the description,
which didn't fetch any results.
As Kevin referred http://forums.alfresco.com/en/viewtopic.php?f=48&t=18994#p62343 need to write a
data webscript on the repo side, to have metadata search in Share.

kevinr
Star Contributor
Star Contributor
In Share 3.3 it is possible to search individual document properties, such as author, modifier, modified etc. The search has been improved to allow complex queries and quoted phrases etc. also.

Kev

billerby
Champ on-the-rise
Champ on-the-rise
Without knowledge of Share one thing that pops up is that you have not indexed your property. Without indexing the field wont be found. Try this:


<property name="my:test_property">
    <title>Title</title>
    <type>d:text</type>
    <mandatory>false</mandatory>
    <index enabled="true">
   <atomic>false</atomic>
   <stored>false</stored>
        <tokenised>true</tokenised>
    </index>
</property>

That solved the problem for me in Alfresco Explorer and I guess it should fix it in Share as well.

Thanks!
/Erik

sselvan
Champ in-the-making
Champ in-the-making
@billerby
thanks for your response.
Even with index setting share search on metadata did not work for me.

joaotpd
Champ on-the-rise
Champ on-the-rise
Hi billerby!!

Thanks for your response!!
With "index" won't work too!! Smiley Sad … and in Alfresco Explorer only work if you configure Advanced Search (in web-client-config)… Simple search return nothing…
Another thing… I read here:http://wiki.alfresco.com/wiki/Full-Text_Search_Configuration that properties, by default, are indexed atomically…
If you search for the value of the property in simple search you obtain results?! …
Thanks again…

João Duarte

billerby
Champ on-the-rise
Champ on-the-rise
I must have dreamt it worked for me in the Explorer interface. I tried it again now with no luck. It turns out that even if the metadata properties are indexed, they are not searched by the simple search. Not in Explorer nor in Share. However in the Alfresco Explorer this in configurable through the web-client-config-custom.xml, but you have to tell property by property which ones to be searchable.

http://wiki.alfresco.com/wiki/Web_Client_Customisation_FAQ#Adding_Properties_to_Simple_Search

I dont know if there is an equal option for Share.

/Erik