cancel
Showing results for 
Search instead for 
Did you mean: 

Lucene Search

tapan_d_thakkar
Champ in-the-making
Champ in-the-making
Hi Guys,

I am trying to search group on authorityName property.

In my system there are two groups "leval1" and "ContractManager".

When i use this query TYPE:"\cm:authorityContainer" AND @cm\:authorityName:GROUP_leval1 it returns nodeRef for group "leval1"..

when i try same thing for other group "ContractManager"  TYPE:"\cm:authorityContainer" AND @cm\:authorityName:GROUP_ContractManager it does not return nodeRef.

When i run these query from Alfresco NodeBrowser.. i am getting same results. I have checked, both group exists in system.

Query works for on Group not for other ?

any inputs on this ?

Thanks..
5 REPLIES 5

mitpatoliya
Star Collaborator
Star Collaborator
when you fire only  TYPE:"\cm:authorityContainer"
are both of your groups appear in the result?
There must be some problem in this type of queries as in my system also I am having the problem.
I am able to search the one of the group but not able to search other one. :cry:

andy
Champ on-the-rise
Champ on-the-rise
Hi

Please check the behaviour with:

@cm\:authorityName:"GROUP_ContractManager"

Andy

tapan_d_thakkar
Champ in-the-making
Champ in-the-making
when you fire only  TYPE:"\cm:authorityContainer"
are both of your groups appear in the result?
There must be some problem in this type of queries as in my system also I am having the problem.
I am able to search the one of the group but not able to search other one. :cry:




Hi mitpatoliya,

yes when i fire only TYPE:"\cm:authorityContainer", i am able to get both the groups, but for separate group query is not working.

Hi

Please check the behaviour with:

@cm\:authorityName:"GROUP_ContractManager"

Andy

Hey andy, i have tried your suggestion also.. but no luck ..

still looking for suggestions ..

Thanks…

Have you got this working? If so, please share how it is solved?

Try hitting below query in the node browser and see if it is working for you or not.

TYPE:"{http://www.alfresco.org/model/content/1.0}authorityContainer" AND (@\{http\://www.alfresco.org/model/content/1.0\}authorityName:'ContractManager\*" OR @\{http\://www.alfresco.org/model/content/1.0\}authorityDisplayName:'ContractManager\*")

Also, let me know how many groups are present in your system?

Thanks,