I am wondering if there's a nuance to searching for a wildcard when using
search:search.

If my xml looks like:

<fileInfo>
  <filename>abcde.png</filename>
  <filesize>5kb</filesize>
  ...
</fileInfo>

When searching, the search string is constrained to search filename and is
wildcarded, for example,
filename:*c*

I am getting back hits where the filename value doesn't have a "c" in it
with search:seach. If I write my own cts queries to search against
filename, they all come back as expected, only getting results that have a
c. That
query: 
cts:element-word-query(xs:QName("filename"),$q,("case-insensitive","diacritic-insensitive","wildcarded"))

What am I doing wrong? I have tried explicitly adding the wildcarded option
in the options xml, but that doesn't help. I get the identical result set
to the search:search query when I include my cts query as an additional
query in search:search.

Thanks,
Harry
_______________________________________________
General mailing list
[email protected]
http://developer.marklogic.com/mailman/listinfo/general

Reply via email to