cancel
Showing results for 
Search instead for 
Did you mean: 

Problems with searches

vta
Champ in-the-making
Champ in-the-making
Hi.

We are experiencing problems with searches.  

We are using query method of class org.alfresco.webservice.repository.RepositoryServiceSoapBindingStub.

For example looking for “( @cm\:title:"suspensive" ) AND (( TYPE:"mi:legalDocuments" )) sometimes it returns two results but the rest of the times it returns zero results.

We have also noticed it with other properties like uuid.  We look for a existing uuid, and some times returns zero results.

In custom-repository.properties we have stablished system.acl.maxPermissionChecks to 50.  Alfresco works better increasing it to 100, but problem still continues.

What could be happening?

Thanks in advance.
3 REPLIES 3

openpj
Elite Collaborator
Elite Collaborator
Have you tried changing query in this way?
( @cm:title\:"suspensive" ) AND (( TYPE:"{yourCustomPrefix:yourCustomNamespace}legalDocuments" ))

Hope this helps.

harishns
Champ in-the-making
Champ in-the-making
I am also facing bit similar problem like
I have files like

company_home >space1
                       >space2
space1 >
              file 1
              file 2
              file 3
space2>
              file 4
              file 5

if I use lucene query 
Query query = new Query(Constants.QUERY_LANG_LUCENE,  "@cm\\:name:\"file*\"");
I am getting results as 5 files but I want to list down the files to only space 1, so i used query like
"PATH:\"/app:company_home/cm:space1//*\" + @cm\\:name:file*"
again I am getting results as 5 nodes.
Can any one correct the query so that my query limit only to folder "space1"

Thanks in advance

maqsood
Confirmed Champ
Confirmed Champ
try this:
"PATH:\"/app:company_home/cm:space1/*\" AND TYPE:\"{http://www.alfresco.org/model/content/1.0}content\" AND @cm\\:name:file*"
hope this helps !