Searching by Aspect Configuration Issue
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Tuesday - last edited Tuesday
Hello Alfresco Community,
I'm experiencing an issue with searching for documents in Alfresco Share. Currently, I can successfully search using:
ASPECT:"Audit:Courriers" AND @Audit\:object_:"rapport"
However, I want to know if there's a way to streamline this so I can search for just "rapport" without specifying the aspect each time. Is there a configuration change I can make to enable direct keyword searches on aspects? I’m currently running Alfresco in a Docker container (Alfresco Community Edition version 23.3.0). Any guidance or suggestions would be greatly appreciated!
Thank you!
- Labels:
-
Alfresco Content Services
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Tuesday
Hi,
you can check this blog post: https://argondigital.com/blog/ecm/adding-metadata-fields-to-simple-search-and-live-search-with-alfre...
Not really sure would work for @Audit object you have, but those files are the one's used by default.
Hope this helps.
Leo Mattioli - Technical Account Manager @Hyland.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Wednesday
Thank you for sharing this solution. While this approach works well for a limited number of fixed aspects, our use case involves multiple aspects (with more being added regularly by users). Manually updating configuration files for each new aspect would create significant maintenance overhead.
Would there be a more dynamic approach that could automatically include all custom aspect properties in searches without requiring configuration changes each time? Perhaps:
- A single wildcard configuration that covers all custom aspects
- An extension or AMP that automatically detects and includes custom aspects in search queries
- A customization at the repository level that modifies search behavior globally
Our goal is a solution that scales with our growing number of aspects without requiring repeated configuration changes.
Do you have any recommendations for this more dynamic scenario?"
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Wednesday
As aspects count can grow significantly, it's not configurable in Alfresco as it would have a substantial impact on performances.
You can for sure create an AMP/JAR extensions for Share. I'm not 100% sure, but I would start checking this method: https://github.com/Alfresco/alfresco-community-repo/blob/master/amps/share-services/src/main/resourc...
It should be the one related to query construction before sending it to backend.
Leo Mattioli - Technical Account Manager @Hyland.
