cancel
Showing results for 
Search instead for 
Did you mean: 

alfresco 4.0.c lucene fails

kay_be_
Champ in-the-making
Champ in-the-making
I made a custom content type with a custom property. I noticed I couldn't find the property using lucene. I then changed the model to make it an indexed property.

         <property name="herinnering:qrcode">
              <title>qrcode</title>
            <type>d:text</type>
            <index enabled="true">
               <atomic>true</atomic>
               <stored>true</stored>
               <tokenised>both</tokenised>
            </index>

         </property>

After restarting I still couldn't find the property using the query @herinnering\:qrcode:"123456789" in the node browser.

I then tried reindexing using  index.recovery.mode = FULL in repository.properties.
After restarting I can't even do any lucene search in the nodebrowser.
I end up with an error:
Search failed due to: org.alfresco.error.AlfrescoRuntimeException: 01030024 No solr query support for store system://system    

Why can't I find herinnering:qrcode?

What is the reason for failing any lucene search after reindexing?
Does it have to do with the fact that 4.0 uses SOLR? Did I reindexed SOLR instead of lucene? I can't even find lucene index folder in ALF_data.

Appreciate your help.
regards,
Kris
5 REPLIES 5

kay_be_
Champ in-the-making
Champ in-the-making
I changed to lucene as index system. I used full recovery mode in alfresco-global.properties.
But my document with qrcode 123456789 is not found using  @herinnering\:qrcode:"123456789" in the node brower. IS there an error in the query I used?

mrogers
Star Contributor
Star Contributor
Your first error.    Why are you looking in the system store?    Usually nodes are created in the spaces store.

kay_be_
Champ in-the-making
Champ in-the-making
Ok, that will be the reaseon for the first error. I must have selected the system store by mistake.
Do you have any idea why nothing is found when I select the space store?
The content model is:

<?xml version="1.0" encoding="UTF-8"?>
<!– Custom Model –>
<!– Note: This model is pre-configured to load at startup of the Repository.  So, all custom –>
<!–       types and aspects added here will automatically be registered –>

<model name="herinnering:demomodel" xmlns="http://www.alfresco.org/model/dictionary/1.0">
<!– Optional meta-data about the model –>
<description>Herinneringsbrief</description>
<author>Red Tree</author>
<version>0.1</version>

<imports>
   <!– Import Alfresco Dictionary Definitions –>
   <import uri="http://www.alfresco.org/model/dictionary/1.0" prefix="d"/>
   <!– Import Alfresco Content Domain Model Definitions –>
   <import uri="http://www.alfresco.org/model/content/1.0" prefix="cm"/>
</imports>
<!– Introduction of new namespaces defined by this model –>
<!– NOTE: The following namespace custom.model should be changed to reflect your own namespace –>   <namespaces>      <namespace uri="com.ephesoftalfrescoherinnering.demo" prefix="herinnering"/>   </namespaces>
  <constraints>
   <constraint name="herinnering:talen" type="LIST">
      <parameter name="allowedValues">
         <list>
            <value>Fr</value>
            <value>Nl</value>
            <value>De</value>
            <value>En</value>
         </list>                                    
      </parameter>
   </constraint>   
  </constraints>
  <types>
      <type name="herinnering:document">
         <title>herinnering</title>
         <parent>cm:content</parent>
         <properties>
          <property name="herinnering:factuurnummer">
              <title>factuurnummer</title>
            <type>d:text</type>
         </property>
        
         <property name="herinnering:geadresseerde">
              <title>geadreseerde</title>
            <type>d:text</type>
         </property>
         <property name="herinnering:qrcode">
              <title>qrcode</title>
            <type>d:text</type>
            <index enabled="true">
               <atomic>true</atomic>
               <stored>true</stored>
               <tokenised>both</tokenised>
            </index>

         </property>
         <property name="herinnering:type">
              <title>Type document</title>
            <type>d:text</type>
         </property>
         <property name="herinnering:voorwerp">
              <title>voorwerp</title>
            <type>d:text</type>
         </property>        
         <property name="herinnering:dienst">
              <title>dienst</title>
            <type>d:text</type>
         </property>
         <property name="herinnering:aantalblz">
              <title>aantal blz</title>
            <type>d:text</type>
         </property>                 
       
         <property name="herinnering:datumopmaak">
              <title>datum opmaak</title>
            <type>d:text</type>
         </property>      
         <property name="herinnering:taal">
              <title>taal</title>
            <type>d:text</type>
            <constraints>
               <constraint ref="herinnering:talen"></constraint>           
            </constraints>
         </property>                   
      </properties>
    </type>
  </types>
  <aspects>
      <aspect name="herinnering:relatedDoc">
         <title>Gerelateerde documenten</title>
         <associations>
            <association name="herinnering:relatedDocList">
               <title>Gerelateerde documenten:</title>
               <source>
                  <mandatory>false</mandatory>
                  <many>true</many>
               </source>            
               <target>
                  <class>herinnering:document</class>
                  <mandatory>false</mandatory>
                  <many>true</many>
               </target>      
            </association>
         </associations>      
      </aspect> 
  </aspects>
</model>

kay_be_
Champ in-the-making
Champ in-the-making
I can see the propertie when I search by name of the document and in the properties I can find this:
[img]http://i279.photobucket.com/albums/kk127/_Naoko_/alfresco/Capture2.jpg[/img]

Why can't I search using :
@herinnering\:qrcode:"123*"
where herinnering is the prefix for com.ephesoftalfrescoherinnering.demo
I already tried an other content model, no improvement. Self defined properties are not searchable for some reason…  Smiley Sad

result: 0 rows.

What else can I try?

mitpatoliya
Star Collaborator
Star Collaborator
If you want it as 1234 only better keep data type as d:int instead of the d:text.
you are treating numbers as string that is I guess the reason for your problem.