AnsweredAssumed Answered

Lucene search query question.

Question asked by tsongwei3 on Jul 2, 2008
Latest reply on Sep 4, 2008 by andy
Hi
I have some question about lucene query.

I have the following structure:
Company_Home>Doc->1.1v->file.pdf
Company_Home>Doc->1.2v->file.pdf
Company_Home>Doc->1.3v->file.pdf

I am tryint to run a query to get "file.pdf" by different given query in my app, I tried the following:
(PATH:"/app:company_home/cm:Doc/cm:1.1v//*" ) AND (@\{http\://www.alfresco.org/model/content/1.0\}name:file.pdf)
This doesn't work. It seems I cannot have number directly after "cm:"

Then I tried..
(PATH:"/app:company_home/cm:Doc/cm:"1.1v"//*" ) AND (@\{http\://www.alfresco.org/model/content/1.0\}name:file.pdf)
But it returns all three files, instead of just for 1.1v.
Is there anything wrong in my query?

Thanks in advance!!

Outcomes