AnsweredAssumed Answered

Lucene Queries

Question asked by alfrescot3ster on Jun 12, 2015
Latest reply on Jun 15, 2015 by alfrescot3ster
Hello guys!

I have some problems with lucene queries. I have searched google for about 1 hour, but i didn't find a solution.

I want to create query, which gives me files, which are under a specific path and a specific file name.

That works so far, but the query just does a 'contains' for the filename attribute and not things like 'start with', 'ends with', and so on:


PATH:"/app:company_home/app:dictionary//*" +TYPE:"cm:content" +@cm\:name:email


I have tried several types of this query like:

PATH:"/app:company_home/app:dictionary//*" AND +TYPE:"cm:content" AND +@cm\:name:email
PATH:"/app:company_home/app:dictionary//*" AND TYPE:"cm:content" AND @cm\:name:"email"
PATH:"/app:company_home/app:dictionary//*" AND TYPE:"cm:content" AND @cm\:name:"email*"
+PATH:"/app:company_home/app:dictionary//*" AND +TYPE:"cm:content" AND +@cm\:name:"email*"


But I always get a full list of files, which are containing the name "email". I want to get files, which are starting with the name "email".

Someone got a solution please?

Outcomes