Limit advanced search to a custom aspect, please help
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-27-2008 08:39 AM
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
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
Labels:
- Labels:
-
Archive
2 REPLIES 2
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-27-2008 08:42 AM
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
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
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-27-2008 11:56 AM
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
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
