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

ip-techlabs
Champ in-the-making
Champ in-the-making
Hi everybody,

I agree with ssaravanan, indeed you have to add a data web script that is able to search in other properties other than the default ones (title, description …)

We already implemented advanced search in one of our Alfresco Share projects and we shared it with community.

Search forms are configured in "share-config-custom.xml", their markup is generated by the Forms Service and much more …

Refer to the following article for more details: http://www.iptechinside.com/labs/documents/show/3

Download: http://forge.alfresco.com/frs/?group_id=242 or http://www.iptechinside.com/labs/projects/list_files/alfrescoshare

Feel free to ask questions if you have any problem …

Regards

eddiem
Champ in-the-making
Champ in-the-making
Hi,
I've implemented your extended search on Share 3.2 CE (thanks for contributing thhis to the Alf community) however, I can't get it to display: It shows the show/hide button but not any of the form controls:

(ps I installed by stopping Alf & unzipping the appropriate files in Alfresco & Share)

Any suggestions,
Thanks
Eddie

ip-techlabs
Champ in-the-making
Champ in-the-making
Hi Eddie,

I suspect that version you have is "3.2r2 CE" and not "3.2 CE", can you do that check for me please ?

Regards,

eddiem
Champ in-the-making
Champ in-the-making
Hi,
Thanks for your response - we are running running 3.2 CE, not 3.2.r.

We have installed the forms 32 examples - could this be a cause?

Any other suggestions?

Thanks
Eddie

ip-techlabs
Champ in-the-making
Champ in-the-making
Hi Eddie,

I'll install forms32 and see what's going wrong.

Regards

eddiem
Champ in-the-making
Champ in-the-making
Hi,
Thanks for this.
Eddie

ip-techlabs
Champ in-the-making
Champ in-the-making
Hi Eddie,

In the meanwhile, can you try to add the advanced search extension to a clean new Alfresco installation (3.2 CE of course)  instead of the one you're working on ?

Let me know what happenend.

Thanks,

ip-techlabs
Champ in-the-making
Champ in-the-making
Hi Eddie,

Is there any new ?

Regards,

zomurn
Champ in-the-making
Champ in-the-making
IP-TechLabs > I had a look at your search form. The result is was a lot of people is waiting for from Alfresco Team. Very unfortunately, your version is dedicated to Alfresco CE 3.2r2. I'am working on Alfresco 3.3.1 EE at the moment, I had a look at your source code (mainly webscripts) and it is really a mess and unmergeable with my Alfresco 3.3.1 EE source code. I regret that I would have to say to my business team : it is an "unsupported feature" for the moment. That's a pity Smiley Sad.

cmarguello
Champ in-the-making
Champ in-the-making
Any solution for add properties for simple search in share?
I have an advanced search in Alfresco Community v3.4.0, and it works fine in share with my custon type (amw, parent: content).
In my advanced search i search for properties from my custom type and cm:name and works ok.
But when i put the name in keywords field, nothing happend.

In share-custom-config.xml i add the form for my type.
And in the config for the type… i put
 
<config evaluator="model-type" condition="amw:contratoEmpresario">
  <forms>
    <form id="search">
      <simple-search-additional-attributes>
   <qname>cm:name</qname>
   <qname>amw:cedula</qname>
   <qname>amw:codigo</qname>
      </simple-search-additional-attributes>
      …..
I also try
       <simple-search-additional-attributes>
       <qname>name</qname>
       <qname>cedula</qname>
            <qname>codigo</qname>
        </simple-search-additional-attributes>

But didnt work anyway.
Thanks