cancel
Showing results for 
Search instead for 
Did you mean: 

Search by cm:name and whitespaces

konda
Champ in-the-making
Champ in-the-making
Hi all,

I have a big trouble trying to define a flexible lucene query to search content by name. I have a file named 'listino prezzi.txt' and this is what I have already tried:

-@cm\:name"*listino*" -> nothing
-@cm\:name"*listin*" -> correct!
-@cm\:name"*listino prezzi*" -> nothing

and, in the end

-@cm\:name"*prezzi*" -> it works!

Is there a way to define a 'flexible' query to search a content that contains a piece of text?

1 REPLY 1

niketapatel
Star Contributor
Star Contributor
Hi Konda, Your all above query should work.

I am not sure if its typo in your query but colon ":" is missing after name.

Can you try below!

@cm\:name:"*listino*"
@cm\:name:"*listin*"
@cm\:name:"*listino prezzi*"
@cm\:name:"*prezzi*"

And also cm:name is defined with tokenised=both

Check out this wiki - http://wiki.alfresco.com/wiki/Search#Finding_nodes_by_text_property_values

Hope it helps!
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.