I got answer to my question. It is index setting which needed change.

Thanks
Mrinmoy

On Mon, Oct 27, 2014 at 2:54 PM, Mrinmoy Khamrui <
[email protected]> wrote:

> Dear All,
>
> I am having problem with wildcarded search in cts:element-word-query when
> used with ? as wildcard.
>
> let $estimate := xdmp:estimate(
>   cts:search(/product,
>     cts:element-word-query(fn:QName("", "title"), "Studying?",
> ("case-insensitive","diacritic-insensitive","punctuation-insensitive","stemmed","wildcarded","lang=en"),
> 1)
>   )
> )
> let $count := count(
>   cts:search(/product,
>     cts:element-word-query(fn:QName("", "title"), "Studying?",
> ("case-insensitive","diacritic-insensitive","punctuation-insensitive","stemmed","wildcarded","lang=en"),
> 1)
>   )
> )
> return text{$estimate, $count}
>
> Here I get estimate as number of all documents in DB whereas count is
> zero.
>
> Can someone help me to understand and provide a way to address this?
>
> Thanks
> Mrinmoy
>
_______________________________________________
General mailing list
[email protected]
http://developer.marklogic.com/mailman/listinfo/general

Reply via email to