07-14-2017 06:32 AM
Hi,
A very simple question:
I'm trying to search a content and restrict it inside a Site but I don't know how to do.
For example if I try to search in site commerce and name Valencia I try this lucene query in home search and home advanced search but it doesn't work:
PATH:"/app:company_home/st:sites/cm:COMMERCE" AND @cm\:name:'Valencia'
I know that I can access site Commerce and use site search dashlet, but I want to do the same from Alfresco home search
Thanks
07-14-2017 01:47 PM
Hi:
You can search in a site context from:
- Site context defined in Alfresco search (combo selection)
- Site facet in Alfresco search results
- Live query search can search in one site in recent Alfresco 5.2 versions
By the way, your query should be something like:
PATH:"/app:company_home/st:sites/cm:COMMERCE//*" AND @cm\:name:'*Valencia*'
Regards.
--C.
07-15-2017 08:15 AM
I didn't find it in the docs (couldn't verify) but if I want to search in my "testsite", I use
SITE:"testsite"
in the query - I used it since 5.0 and can't say if it worked before. This should work in Share and the Search-API.
For you the query could be
SITE:"COMMERCE" cm:name:"*Valencia"
this is an alfresco FTS query.
07-16-2017 05:08 AM
Just here Martin Ehe (hidden in RM documentation):
Search for fields | Alfresco Documentation
Alfresco Full Text Search Reference | Alfresco Documentation
Regards.
--C.
07-16-2017 05:23 AM
Thanks , have to bookmark that...
07-17-2017 08:26 PM
01-25-2021 10:17 AM
SITE:savvas-asset-library AND @nameAL101033062.jpg
select lucene dropdown list.
Explore our Alfresco products with the links below. Use labels to filter content by product module.