Now that I see it formatted (not on my phone), another question:  do you
mean to search for either mat:joining and mat:joining-date at the same
level, or should joining-date be inside joining?


On Mon, Jun 9, 2014 at 1:17 AM, Amit Kumar Dev <[email protected]> wrote:

> Thanks! Chris,
>
> I can use path range index, but I am having so many elements which are
> causing the same issue.
> I am not sure why my element query with attribute range index is not
> returning proper result.
>
> Query looks fine to me. I also enabled the "word position" and "element
> word position" index then also getting false result in response.
>
> Kindly suggest can we get correct results by using the below query or I
> have to go for path range index.
> Query:
> <cts:and-query>
>                 <cts:element-query>
>                                 <cts:element>mat:employee</cts:element>
>                                 <cts:element-query>
>
> <cts:element>mat:joining</cts:element>
>
> <cts:element>mat:joining-date</cts:element>
>
> <cts:element-attribute-range-query operator="=">
>
> <cts:element>mat:date</cts:element>
>
> <cts:attribute>mat:date-value</cts:attribute>
>                                                                 <cts:value
> xsi:type="xs:date">2010-11-09</cts:value>
>
> </cts:element-attribute-range-query>
>                                 </cts:element-query>
>                 </cts:element-query>
> </cts:and-query>
>
>
>
_______________________________________________
General mailing list
[email protected]
http://developer.marklogic.com/mailman/listinfo/general

Reply via email to