AnsweredAssumed Answered

Lucene Search

Question asked by luisg on Dec 29, 2009
Latest reply on Jan 27, 2010 by maqsood
Hi there…

I'm developing a GWT application that uses the Alfresco Repository.

In my application I do some lucene searches in the Alfresco repository, but I start notice that something is wrong. So, I started to use the node browser to test the querys I use, and I found what is going on.

The thing is, If I do the query:

PATH:"/app:company_home/cm:FolderA/cm:FolderB/cm:FolderC//*" AND TYPE:"{http://www.model.pt/model/content/1.0}myType"

I get the following results:

teste_psql.sql
moredataModel.xml
estrutura_expediente.dia

And this is right (these are some documents that I have in my desktop and just added them to alfresco).

the strange thing is, if I do the query:

PATH:"/app:company_home/cm:FolderA/cm:FolderB/cm:FolderC//*" AND TYPE:"{http://www.model.pt/model/content/1.0}myType" AND @cm\:name:"teste_psql.sql"

nothing is found… The same happens for the file sigpoaModel.xml BUT not for the file estrutura_expediente.dia!!!!

If I do the query:

PATH:"/app:company_home/cm:FolderA/cm:FolderB/cm:FolderC//*" AND TYPE:"{http://www.model.pt/model/content/1.0}myType" AND @cm\:name:"estrutura_expediente.dia"

I get the right result!

Can someone tell me what is going on?  :x

Thanks

Luis Gonçalves

Outcomes