cancel
Showing results for 
Search instead for 
Did you mean: 

Limit advanced search to a custom aspect, please help

lvs
Champ in-the-making
Champ in-the-making
Hi,

I would like to limit the results of my advanced search to the contents with a specific aspect. It does not seem to be possible without extending the searchContext class and adding to the query the aspect, is it true?

Thanks for your help
Laura
2 REPLIES 2

lvs
Champ in-the-making
Champ in-the-making
In fact it would be fine for me if there were a way to add to the search context the query element "ASPECT:"{http://myUri/1.0}myAspect"".
Or even better, a way to add to the context a way to search only trhe contents that do not have the myAspect aspect….

Do you know if this is possible?
Thanks!
Laura

lvs
Champ in-the-making
Champ in-the-making
I am going further wit this and trying to extend the searchContext in order to add my constraint about my aspect, but now I get an error : java.lang.VerifyError: Cannot inherit from final class
From the sources, SearchContext is not declared as final but from the class I can see it is.

do you have any idea how i could make a work around this? I don't have anymore ideas on how to limit my search result by aspect …

Thank you for your help
Laura