cancel
Showing results for 
Search instead for 
Did you mean: 

Lucene Search and Custom aspect

ppurcellrr
Champ in-the-making
Champ in-the-making
Hello

I have trying to write  a javascript to search a  site  and count the  number of document of  a specific aspect and property

aspect rrx:documentType
with
properties : documentSubClass, documentCategory, documentType


var searchStr ="@rrx\:documentType:rrx\:documentType:report";


searchResults = search.luceneSearch("workspace://SpacesStore/1f2c36c0-1bbb-4243-be58-a1274f779a28", searchStr );

When I take the search string out I get results for the correct workspace  what should the searchStr string be to  search for a specific property of an aspect.

1 REPLY 1

zladuric
Champ on-the-rise
Champ on-the-rise
You need to specify an aspect and properties, and logical operators. Something like:
var searchStr = ' ASPECT:"rrx:documentType" AND @rrx\:documentType:"report" '


I don't know if it is this forums formatting or you miss some quotes and similar in there.
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.