You can use the string representation of a boolean with an element-word-query term. But an ewq for 'true' would also match 'fubar true' because it's a word match. It's a little better to use cts:element-value-query, but that's still just a lexical match. So 'true' won't match the valid xs:boolean '1', even though both are equivalent lexical representations of a true() item.
If you want type-aware matching then you need cts:element-range-query with an appropriate range index. -- Mike On 5 Aug 2014, at 16:35 , Dinesh <[email protected]> wrote: > Hi All, > > Can we use boolean within a cts:element-word-query ? > > Regards > Dinesh > _______________________________________________ > General mailing list > [email protected] > http://developer.marklogic.com/mailman/listinfo/general _______________________________________________ General mailing list [email protected] http://developer.marklogic.com/mailman/listinfo/general
