cancel
Showing results for 
Search instead for 
Did you mean: 

Problemi con la ricerca avanzata Alfresco 4.0d

need
Champ in-the-making
Champ in-the-making
CIao a tutti,

ho aggiunto il mio content model personalizzato per Alfresco Share, posto il mio share-config-custom.xml, la parte relativa al form di ricerca:

<config evaluator="model-type" condition="ecoh:cv">
      <forms>
         <!– Search form –>
         <form id="search">
            <field-visibility>
        <!–  <show id="cm:name" />
              <show id="cm:title" force="true" />
              <show id="mimetype" />
              <show id="cm:modified" />
              <show id="cm:modifier" /> –>
              
              
               <!– ecoh:cv –>
               <show id="ecoh:presidenza" />
               <show id="ecoh:plavoro" />
               <show id="ecoh:pcurriculum" />
               <show id="ecoh:tipocontatto" />
               <show id="ecoh:contrattoa" />
            </field-visibility>
           
            <appearance>
               <!– ecoh:cv –>
               <field id="ecoh:presidenza" label-id="prop.ecoh_presidenza" />
                   <!–  <control template="/org/alfresco/components/form/controls/textfield.ftl" /> –>
              
               <field id="ecoh:plavoro" label-id="prop.ecoh_plavoro" />
                   <!–   <control template="/org/alfresco/components/form/controls/textfield.ftl" /> –>
              
               <field id="ecoh:pcurriculum" label-id="prop.ecoh_pcurriculum" />
                   <!–  <control template="/org/alfresco/components/form/controls/textfield.ftl" /> –>
              
               <field id="ecoh:tipocontatto" label-id="prop.ecoh_tipocontatto" />
                   <!–  <control template="/org/alfresco/components/form/controls/textfield.ftl" /> –>
               <field id="ecoh:contrattoa" label-id="prop.ecoh_contrattoa" />   
            </appearance>
         </form>
      </forms>
   </config>
  

il modello funziona perchè ho configurato una regola che specializza il tipo automaticamente su una cartella, solo che quando vado a inserire le proprietà personalizzate sui documenti e vado a ricercare per proprietà custom non mi viene restituito nessu risultato e nemmeno tra i log non vedo niente di interessante.

Ho installato e configurato Alfresco 4-0d manualmente su tomcat 6.029 e windows server 2003.

Non capisco cosa ho sbagliato, forse devo aggiungere qualcosa per quanto riguarda lucene nel file alfresco-global-properties???

Grazie a tutti
2 REPLIES 2

openpj
Elite Collaborator
Elite Collaborator
Potrebbe dipendere da come hai definito il custom content model.
Puoi condividere la definizione del content model delle proprietà che stai utilizzando per le ricerche?
Inoltre servirebbe anche un esempio di come stai cercando i contenuti, ovvero servirebbero le parole chiave che stai utilizzando nella form di ricerca.

need
Champ in-the-making
Champ in-the-making
si si questo è il content model:


   <!– Introduction of new namespaces defined by this model –>
   <namespaces>
      <namespace uri="ecoh.model" prefix="ecoh" />
   </namespaces>
   
   <constraints>
        <constraint name="ecoh:province" type="LIST">
           <parameter name="allowedValues">
               <list>
                  <value>Nessuna</value>
                     <value>Agrigento</value>
                    <value>Alessandria</value>
                    <value>Ancona</value>
                    <value>Aosta</value>
                    <value>Arezzo</value>
                    <value>Ascoli Piceno</value>
                    <value>Asti</value>
                    <value>Avellino</value>
                    <value>Bari</value>
                    <value>Barletta-Andria-Trani</value>
                    <value>Belluno</value>
                    <value>Benevento</value>
                    <value>Bergamo</value>
                    <value>Biella</value>
                    <value>Bologna</value>
                    <value>Bolzano</value>
                    <value>Brescia</value>
                    <value>Brindisi</value>
                    <value>Cagliari</value>
                    <value>Caltanissetta</value>
                    <value>Campobasso</value>
                    <value>Carbonia-Iglesias</value>
                    <value>Caserta</value>
                    <value>Catania</value>
                    <value>Catanzaro</value>
                    <value>Chieti</value>
                    <value>Como</value>
                    <value>Cosenza</value>
                    <value>Cremona</value>
                    <value>Crotone</value>
                    <value>Cuneo</value>
                    <value>Enna</value>
                    <value>Fermo</value>
                    <value>Ferrara</value>
                    <value>Firenze</value>
                    <value>Foggia</value>
                    <value>Forlì-Cesena</value>
                    <value>Frosinone</value>
                    <value>Genova</value>
                    <value>Gorizia</value>
                    <value>Grosseto</value>
                    <value>Imperia</value>
                    <value>Isernia</value>
                    <value>La Spezia</value>
                    <value>L'Aquila</value>
                    <value>Latina</value>
                    <value>Lecce</value>
                    <value>Lecco</value>
                    <value>Livorno</value>
                    <value>Lodi</value>
                    <value>Lucca</value>
                    <value>Macerata</value>
                    <value>Mantova</value>
                    <value>Massa-Carrara</value>
                    <value>Matera</value>
                    <value>Messina</value>
                    <value>Milano</value>
                    <value>Modena</value>
                    <value>Monza</value>
                    <value>Napoli</value>
                    <value>Novara</value>
                    <value>Nuoro</value>
                    <value>Olbia-Tempio</value>
                    <value>Oristano</value>
                    <value>Padova</value>
                    <value>Palermo</value>
                    <value>Parma</value>
                    <value>Pavia</value>
                    <value>Perugia</value>
                    <value>Pesaro-Urbino</value>
                    <value>Pescara</value>
                    <value>Piacenza</value>
                    <value>Pisa</value>
                    <value>Pistoia</value>
                    <value>Pordenone</value>
                    <value>Potenza</value>
                    <value>Prato</value>
                    <value>Ragusa</value>
                    <value>Ravenna</value>
                    <value>Reggio Calabria</value>
                    <value>Reggio Emilia</value>
                    <value>Rieti</value>
                    <value>Rimini</value>
                    <value>Roma</value>
                    <value>Rovigo</value>
                    <value>Salerno</value>
                    <value>Medio Campidano</value>
                    <value>Sassari</value>
                    <value>Savona</value>
                    <value>Siena</value>
                    <value>Siracusa</value>
                    <value>Sondrio</value>
                    <value>Taranto</value>
                    <value>Teramo</value>
                    <value>Terni</value>
                    <value>Torino</value>
                    <value>Ogliastra</value>
                    <value>Trapani</value>
                    <value>Trento</value>
                    <value>Treviso</value>
                    <value>Trieste</value>
                    <value>Udine</value>
                    <value>Varese</value>
                    <value>Venezia</value>
                    <value>Verbano-Cusio-Ossola</value>
                    <value>Vercelli</value>
                    <value>Verona</value>
                    <value>Vibo Valentia</value>
                    <value>Vicenza</value>
                    <value>Viterbo</value>
                </list>
            </parameter>
        </constraint>
       
        <constraint name="ecoh:provenienze" type="LIST">
           <parameter name="allowedValues">
             <list>
                <value>Default</value>
                <value>Scelta uno</value>
                <value>Scelta due</value>
                <value>Scelta tre</value>
             </list>      
           </parameter>
        </constraint>
       
        <constraint name="ecoh:tcontatto" type="LIST">
           <parameter name="allowedValues">
             <list>
                <value>Default</value>
                <value>Tipo uno</value>
                <value>Tipo due</value>
                <value>Tipo tre</value>
             </list>      
           </parameter>
        </constraint>
       
        <constraint name="ecoh:contratto" type="LIST">
           <parameter name="allowedValues">
             <list>
                <value>Default</value>
                <value>Tipo uno</value>
                <value>Tipo due</value>
                <value>Tipo tre</value>
             </list>      
           </parameter>
        </constraint>
   </constraints>
   
   <types>
      
      <type name="ecoh:cv">
         <title>Ecohmedia Curriculum</title>
         <parent>cm:content</parent>
         
         <properties>
         
            <property name="ecoh:nome">
               <type>d:text</type>
            </property>
            
            <property name="ecoh:cognome">
               <type>d:text</type>
            </property>
            
            <property name="ecoh:presidenza">
               <type>d:text</type>
               <mandatory>false</mandatory>
               <default>Nessuna</default>
               <constraints>
                  <constraint ref="ecoh:province" />
               </constraints>
            </property>
            
            <property name="ecoh:plavoro">
               <type>d:text</type>
               <mandatory>false</mandatory>
               <default>Nessuna</default>
               <constraints>
                  <constraint ref="ecoh:province" />
               </constraints>
            </property>
            
            <property name="ecoh:pcurriculum">
               <type>d:text</type>
               <mandatory>false</mandatory>
               <default>Default</default>
               <constraints>
                  <constraint ref="ecoh:provenienze" />
               </constraints>
            </property>
            
            <property name="ecoh:tipocontatto">
               <type>d:text</type>
               <mandatory>false</mandatory>
               <default>Default</default>
               <constraints>
                  <constraint ref="ecoh:tcontatto" />
               </constraints>
            </property>
            
            <property name="ecoh:contrattoa">
               <type>d:text</type>
               <mandatory>false</mandatory>
               <default>Default</default>
               <constraints>
                  <constraint ref="ecoh:contratto" />
               </constraints>
            </property>
            
         </properties>
            
      </type>

      
   </types>


</model>

Come ricerca ho provato a fare la ricerca sulla proprietà provincia oppure sulla proprietà ecoh:nome inserendo il nome completo.
Getting started

Tags


Find what you came for

We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.