cancel
Showing results for 
Search instead for 
Did you mean: 

Lucene searching by properties

ace9883
Champ in-the-making
Champ in-the-making
Hi!

I have a problem accessing my custom property values. I defined a new Namespace in Alfresco like this:

<namespaces>
   <namespace uri="servicios.gestorDocumental.model.Documento" prefix="prea" />
</namespaces>

<types>
   <type name="prea:documento">
      <title>XXXXX</title>
      <parent>cm:content</parent>
      <properties>
         <property name="prea:uid">
            <type>d:text</type>
            <multiple>false</multiple>   
         </property>
         <property name="prea:titulo">
            <type>d:text</type>
            <multiple>false</multiple>               
         </property>
         <property name="prea:tipo">
            <type>d:text</type>
            <multiple>false</multiple>
         </property>
                </properties>
   </type>
</types>

Reading this wiki page http://wiki.alfresco.com/wiki/Search#Finding_Nodes_By_Type, it says:

You can use the full {namespace}localName version of QName to identify the property but you will have a bit more escaping to do.

What are the characters that need escaping? Is there any way to access more easily to them?

Thank you in advance! Smiley Happy
1 REPLY 1

andy
Champ on-the-rise
Champ on-the-rise
Hi

See LuceneQueryParser.escape()

Andy