cancel
Showing results for 
Search instead for 
Did you mean: 

Alfresco Share Advanced Search Customization

gwad
Champ in-the-making
Champ in-the-making
Hi,

I have followed this example exactly as mentioned: http://wiki.alfresco.com/wiki/Share_Advanced_Search , to configure my Alfresco Advanced Search screen. I am able to select the 'SOP Document' from the 'Look for:' menu as well, and able to see my custom fields. However, not even the 'Keywords' field is searchable through this template. Why is that? If I select 'Content' from the 'Look for:' menu, then the search is perfect. It seems to me that the example has just created a dummy screen that doesn't actually do anything.

How do I give this new form some searching capability?

Note: I have noticed that when I select my new form and search, the last part of the URL contains "datatype":"my:sop". If I manually changed this to "datatype":"cm:content" and press Enter, the results appear. Seems to tell me that the problem lies in this area.

Any help would be greatly appreciated.

Regards,

Gwad
23 REPLIES 23

slynch
Champ in-the-making
Champ in-the-making
Fresh install of Alfresco 4.0.d for Win64…

The behavior is not as expected if I select more than one tag.  That is, if I select any single tag, it will return all documents that are tagged with the tag, but if I select 2 tags zero results are found.  Anyone had any luck with this?

Also, the Select button for the tag selection on the form is not displayed the first time I visit the page.  I must refresh the Advanced Search page in order to get the button to appear.

guilherme_souza
Champ in-the-making
Champ in-the-making
I had the same problem! When i select more than one tag, no results are returned… I think that this could be a problem when the search URL is assembled, but i don't know in which part of the code that's set. I've searched in the forum but this is the only topic saying about this error. If anyone can resolve this problem please post a reply saying how to do that.

Thanks,

Guilherme.

theoryoflinkin
Champ on-the-rise
Champ on-the-rise
Hi,

Could you explain to me how did you do to make the search on categories working, please?

When I want to test it, it always return me nothing

Thanks in advance

gojko
Champ in-the-making
Champ in-the-making
I have a problem with search. I don't really need multiple tags, but with single tags I get 0 results. When I cluck tags quick links in DocumentsLibrary, the results are displayed correctly. This is my share-form-config.xml

<!– Search form –>
         <form id="search"> 
            <field-visibility>
               <show id="cm:name" />
               <show id="cm:title" force="true" />
               <show id="cm:description" force="true" />
               <show id="cm:taggable" for-mode="edit" force="true" />
               <show id="mimetype" />
               <show id="cm:modified" />
               <show id="cm:modifier" />
            </field-visibility>
            <appearance>
               <field id="mimetype">
                  <control template="/org/alfresco/components/form/controls/mimetype.ftl" />
               </field>
               <field id="cm:modifier">
                  <control>
                     <control-param name="forceEditable">true</control-param>
                  </control>
               </field>
               <field id="cm:modified">
                  <control template="/org/alfresco/components/form/controls/daterange.ftl" />
               </field>
               <field id="cm:taggable">
                  <control>
                    <control-param name="compactMode">true</control-param>
                    <control-param name="params">aspect=cm:taggable</control-param>
                    <control-param name="createNewItemUri">/api/tag/workspace/SpacesStore</control-param>
                    <control-param name="createNewItemIcon">tag</control-param>
                   </control>
                </field>
            </appearance>
         </form>
      </forms>