Querying content inside a Site

cancel
Showing results for 
Search instead for 
Did you mean: 
informatica4plu
Member II

Querying content inside a Site

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
cesarista
Customer

Re: Querying content inside a Site

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
Senior Member II

Re: Querying content inside a Site

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
Customer

Re: Querying content inside a Site

Just here Martin Ehe (hidden in RM documentation):

Search for fields | Alfresco Documentation 

Alfresco Full Text Search Reference | Alfresco Documentation 

Regards.

--C.

mehe
Senior Member II

Re: Querying content inside a Site

Thanks Smiley Happy, have to bookmark that...

douglascrp
Advanced II

Re: Querying content inside a Site

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

Thank you for sharing it.

stellapan
Customer

Re: Querying content inside a Site

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

select lucene dropdown list.