cancel
Showing results for 
Search instead for 
Did you mean: 

Querying content inside a Site

informatica4plu
Champ in-the-making
Champ in-the-making

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

6 REPLIES 6

cesarista
World-Class Innovator
World-Class Innovator

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.

mehe
Elite Collaborator
Elite Collaborator

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. 

cesarista
World-Class Innovator
World-Class Innovator

Just here Martin Ehe (hidden in RM documentation):

Search for fields | Alfresco Documentation 

Alfresco Full Text Search Reference | Alfresco Documentation 

Regards.

--C.

mehe
Elite Collaborator
Elite Collaborator

Thanks Smiley Happy, have to bookmark that...

douglascrp
World-Class Innovator
World-Class Innovator

Cesar Capillas  I didn't know that SITE query existed.

Thank you for sharing it.

stellapan
Champ in-the-making
Champ in-the-making

SITE:savvas-asset-library AND @nameSmiley FrustratedAL101033062.jpg

select lucene dropdown list.