cancel
Showing results for 
Search instead for 
Did you mean: 

[solved] finding nodes & docs with spec. type

robobot
Champ in-the-making
Champ in-the-making
hello again,
i have a new problem with a query: the following string should retrieve all folders in the specific path and some documents in that folders that match a condition:

PATH:"//app:company_home/app:user_homes/cm:Test/cm:Projects/cm:MyProject//." AND TYPE:\{http\://www.alfresco.org/model/content/1.0\}folder OR (+@candidate\:Objid: 100014098900000 AND +@candidate\:OwnerType: 😎

The Query above just fetches the folders with no documents. If i write

PATH:"//app:company_home/app:user_homes/cm:Test/cm:Projects/cm:MyProject//." AND +@candidate\:Objid: 100014098900000 AND +@candidate\:OwnerType: 8
the documents will be fetched, but folders are omit. can anybody help me. how do i write this query correct ?

thank you
steve
2 REPLIES 2

rogier_oudshoor
Champ in-the-making
Champ in-the-making
Did you try:

    PATH:"//app:company_home/app:user_homes/cm:Test/cm:Projects/cm:MyProject//." AND (TYPE:\{http\://www.alfresco.org/model/content/1.0\}folder OR (+@candidate\:Objid: 100014098900000 AND +@candidate\:OwnerType: 8))

I added parenthesis around the second AND clause here.

robobot
Champ in-the-making
Champ in-the-making
ups. this is working..although i am sure, that i tried this earlier  :?
anyway, thank you.