cancel
Showing results for 
Search instead for 
Did you mean: 

'-' (minus character) in node path makes it unfindable

adepue
Champ in-the-making
Champ in-the-making
I briefly attempted searching for this issue in the forums and issue tracker, but didn't come up with anything immediately, so I apologize if this is old.  We are using Alfresco 2.0 and can store documents (nodes) with names containing '-' characters.  We can even look those nodes up if we know their id.  However, if we attempt to use Lucene to find the node by its path (by constructing a PATH:"…" query), the query will fail.  I should note that we escape any '-' in the path.  So, it might look something like this: PATH:"content/sources/some\-doc\-with\-hyphen\-in\-name.pdf"  If we store the document with '_' characters instead of '-' (and modify the query appropriately), then everything works fine.  Is this a known issue?  Has it already been fixed?  Or do we need to escape/handle '-' characters differently?
1 REPLY 1

kevinr
Star Contributor
Star Contributor
The Alfresco PATH Lucene operator searches the qname path to the object - not the cm:name property path. Does the qname to the object have "-" in it?

Kevin