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
General@developer.marklogic.com
http://developer.marklogic.com/mailman/listinfo/general

Reply via email to