cancel
Showing results for 
Search instead for 
Did you mean: 

Share advanced search for Sites

nikes
Champ on-the-rise
Champ on-the-rise
Hi All,

Can we configure site search in Advanced Search page in 3.4.*?

I followed steps from wiki page http://wiki.alfresco.com/wiki/Share_Advanced_Search, but search doesn't return any result when I search for Sites.

What type of Nodes we can search using Advanced Search form?

Nikesh
11 REPLIES 11

kevinr
Star Contributor
Star Contributor
Do you mean the st:site node type or are you doing something else…? st:site nodes extend directly from cm:folder so yes in theory it should be quite possible to find those and display them. However in the results they will look like folders - that may not be what you wanted…!

nikes
Champ on-the-rise
Champ on-the-rise
Thanks for the quick reply.

Do you mean the st:site node type or are you doing something else…?

Yes. I would like to search "st:site" node type.
We are adding an aspect to Create Site page, so all sites has custom aspect attached.
I would like to display custom aspect property search form for site.

Though there is a search site page available out-of-the box, our requirement is to have Advanced Share Search for all types of node.

I have one more question.
Is it possible to configure search form for custom property search?
What I see from Advanced Search wiki page is the configuration for TYPE and not for the ASPECT.

Thanks,
Nikesh

kevinr
Star Contributor
Star Contributor
You can search any properties, custom or standard alfresco ones - but currently types not aspects. However you can configure the same type multiple times, add and search fields for custom aspects to a config for a particular type.

Kev

stevegreenbaum
Champ in-the-making
Champ in-the-making
Is the ability to search for the presence of an aspect or the ability to search on the value of a property within an aspect on the roadmap for the advanced search screen?  If so, which release?

kevinr
Star Contributor
Star Contributor
You can search on a property from an aspect right now - all properties are unique in Alfresco, so configuring in the property is irrelevant to what type/aspect it comes from.

You can search for an aspect now in Advanced and Simple search using the fts-alfresco syntax:
ASPECT:"cm:versionable"

But obviously that isn't UI Smiley Happy so adding the ability to search for a specific Aspect in the advanced search UI is on the roadmap for the next major release.

Cheers,

Kev

alarocca
Champ in-the-making
Champ in-the-making
I would like to search for properties of my custom aspect (cs:conservabile). As suggested, if I write ASPECT:"cs:conservabile" as search query, I find the only document having that aspect applied.

Anyway, in order to have a usable user interface, I created a new advanced search form for cm:content including the properties the aspect. It appears as expected but, unfortunately, it does not return any document if I specify a value for one of the aspect properties (cs:codice-fiscale or csSmiley Tongueartita-iva). Searching for title propertis (it should be an aspect property too) works. Any hint? How can I debug the query executed from Share?

The following is the configuration I'm using:


   <config evaluator="string-compare" condition="AdvancedSearch">
   <advanced-search>
      <forms>
         <form id="search2" label="Conservazione" description="Cerca documenti conservati o da conservare">cm:content</form>
      </forms>
   </advanced-search>
   </config>

   <config evaluator="model-type" condition="cm:content">
   <forms>
      <form id="search2">
         <field-visibility>
            <show id="cm:name" />
            <show id="cm:title" force="true" />
            <show id="cs:partita-iva" force="true" />
            <show id="cs:codice-fiscale" force="true" />
         </field-visibility>
         <appearance>
            <field id="cm:title">
               <control template="/org/alfresco/components/form/controls/textfield.ftl" />
            </field>
            <field id="cs:partita-iva">
               <control template="/org/alfresco/components/form/controls/textfield.ftl" />
            </field>
            <field id="cs:codice-fiscale">
               <control template="/org/alfresco/components/form/controls/textfield.ftl" />
            </field>
         </appearance>
      </form>
   </forms>
   </config>

stevegreenbaum
Champ in-the-making
Champ in-the-making
I am able to successfully search on the value of a property of an aspect in the advanced search screen simply by adding that property to the form.

alarocca
Champ in-the-making
Champ in-the-making
Is your configuration as mine? Which version are you using? Mine is 3.4c Community Edition

I am able to successfully search on the value of a property of an aspect in the advanced search screen simply by adding that property to the form.

stevegreenbaum
Champ in-the-making
Champ in-the-making
Yes, 3.4c.

Which property in your configuration is from the aspect?