Hi I'm trying to search a node whose name is "MainReference" and contains a property "id" whose value is either equal to "FK123456" or "123456" inside a given path. When I'm doing this using the query builder in the code, then it's working fine. For that I'm using this statement:
SELECT * FROM [nt:base] AS s WHERE ISDESCENDANTNODE(['/etc/commerce/products/flipkart']) and CONTAINS(s.*, 'MainReference')and (s.['id']='FK123456' OR s.['id']='123456' )
but when I'm trying to search for it using crxdelite --> Tools --> query, using this statement:
SELECT * FROM [nt:base] AS s WHERE ISDESCENDANTNODE(s,'/etc/commerce/products/flipkart') and CONTAINS NAME() = 'MainReference' and (s.id, 'FK123456' OR s.id='123456')
It gives some kinf of error in the statement.
Can you please help me out? How can I execute the same query using the query tool in the search function.
Type of query is SQL2 error is -- SELECT * FROM [nt:base] AS s WHERE ISDESCENDANTNODE(s,'/etc/commerce/products/flipkart') and CONTAINS NAME() = 'MainReference' and (s.id, 'FK123456' OR s.id='123456'); expected: (, ., =, <>, <, >, <=, >=, LIKE, IS, NO