cancel
Showing results for 
Search instead for 
Did you mean: 

full-text query in a scope smaller than the entire store.

jiehuanli
Champ in-the-making
Champ in-the-making
I wonder if there is a way to do a full-text search using webservices within a space for example.  I am letting people publish to a space called "Published", and when users use the search function on the website, I want to search within the "Published" space only.  Thanks.
1 REPLY 1

davidc
Star Contributor
Star Contributor
If you're using the Lucene query language, you may use PATH.

For example, if you wish to search for content containing the text 'hello' within the space /Company Home/Published you can use something like…

PATH:/app:Company_Home/cm:Published TEXT:hello

One trick is that you can log the queries performed by Alfresco's Web Client Advanced Search screen.  So, you can build up the query using the UI and then have the Lucene query logged.  To enable this, set the following in log4j.properties.

log4j.logger.org.alfresco.web.bean.SearchContext=debug
Getting started

Tags


Find what you came for

We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.