I'm willing to be corrected by a MarkLogic guru, but my understanding is that 
wildcard searches are applicable only to string data types. So if you want to 
enable a "wildcard match" on a numeric index, you would in fact have to create 
a 
second index on your element with type xs:string and evaluate your search in 
that context.

David S.

On Mon, 19 Jun 2017, Oleksii Segeda wrote:

> Hi everyone,
>
> Any thoughts on this?
>
> Oleksii.
>
>
> -----Original Message-----
> From: Oleksii Segeda
> Sent: Friday, June 16, 2017 6:16 PM
> To: general@developer.marklogic.com
> Subject: cts:element-value-match for integers
>
> Hi everyone,
>
> Can someone explain how does cts:element-value-match work with integer 
> indexes? I cannot pass a string as a second argument, so it's unclear how to 
> do a wildcarded search.
> Ultimate goal is to find 2000 and 200, if user typed 200. I understand that I 
> can create an additional string index, but I want to know if a better 
> solution exists.
>
> Thanks.
>
> Oleksii Segeda
> IT Analyst
> Information and Technology Solutions
> www.worldbank.org
>
>
>
>
> _______________________________________________
> General mailing list
> General@developer.marklogic.com
> Manage your subscription at:
> http://developer.marklogic.com/mailman/listinfo/general
>

-- 
David Sewell
Manager of Digital Initiatives
The University of Virginia Press
Email: dsew...@virginia.edu   Tel: +1 434 924 9973
Web: http://www.upress.virginia.edu/rotunda
_______________________________________________
General mailing list
General@developer.marklogic.com
Manage your subscription at: 
http://developer.marklogic.com/mailman/listinfo/general

Reply via email to