cancel
Showing results for 
Search instead for 
Did you mean: 

Lucene searching objects with spaces

sgomez
Champ in-the-making
Champ in-the-making
Hello,

I seem to have trouble doing a search for items that contain a space in the title.  I've looked through similar posts in the forums but haven't gotten anything that I tried that would fix this issue.

For example, I  have three folders titled:
1.  Folder One
2.  Student Folder
3.  Admin Folder Two

When I do the query TYPE:"cm:folder" AND @cm\:name:folder* it returns all three, but I would like it to only return 1 result(Folder One).  I think the problem is that there are spaces in the title, so any word that starts with folder will be returned as a result.  Is there a way to fix this?  I am using 3.1.  I've tried it through javascript and the node browser and it is the same result, and hoping to move over to Java after these issues are addressed.  Thank you in advanced.

sgomez
1 REPLY 1

nvsreeram
Champ in-the-making
Champ in-the-making
"Folder One" or any name/title with spaces would get tokenized by default. For custom fields, you can configure Alfresco so that it does not tokenize.

Did you try these in the Node Browser:
TYPE:"cm:folder" AND @cm\:name:folder one
or
TYPE:"cm:folder" AND @cm\:name:"folder one"

These should return the desired result.