Hi Mano,
You could do fn:collection("UserDetails")//User//Surname[fn:starts-with('J',
.)], but I don't really expect that to be faster than using the wildcard option
of the query. Could even be that above expression is optimized to your query.
Kind regards,
Geert
Van: [email protected]
[mailto:[email protected]] Namens mano m
Verzonden: donderdag 10 februari 2011 11:44
Aan: [email protected]
Onderwerp: [MarkLogic Dev General] Alternate for wildcard search
Hi,
In my application I have to display the list user name starts with the
character choosen by the User. In the ML database all the Wildcard options are
disabled. I have enabled the Wildcard in cts:element-word-query() directly ,
which slow down the query execution. Is there anyother way to get the user
names starts with specific character?
Sample query:
cts:search (fn:collection("UserDetails")//User,
cts:element-word-query(xs:QName ("Surname"),"J*",
"wildcarded"))
Regards,
Mano
_______________________________________________
General mailing list
[email protected]
http://developer.marklogic.com/mailman/listinfo/general