Hi,

Using queryManager.values I can invoke cts:uris, but how could I invoke
cts:uri-match with a wildcarded uri through the Java API?

Thanks,
Andreas



2017-03-31 17:22 GMT+02:00 Justin Makeig <justin.mak...@marklogic.com>:

> Apologies, I read too fast. You were asking about "Java", not
> "JavaScript". (Car is to carpet as Java is to JavaScript.)
>
> You'll need to specify a URI values constraint.
>
> <options xmlns="http://marklogic.com/appservices/search";>
> <values name="uris">
> <uri/>
> </values>
>   …
> </options>
>
> And then queryManager.values("uris", new JacksonHandle()) to use it. (Hat
> tip: Sam Mefford.)
>
> Take a look at <http://docs.marklogic.com/guide/java/searches#id_76144>
> and <http://docs.marklogic.com/guide/search-dev/appendixa#id_46397>.
>
> Justin
>
> > On Mar 31, 2017, at 8:08 AM, Justin Makeig <justin.mak...@marklogic.com>
> wrote:
> >
> > <https://docs.marklogic.com/cts.uriMatch>
> >
> > In general, the built-in functions map one-to-one between JavaScript and
> XQuery. (There are exceptions.) Because hyphens aren't friendly in
> JavaScript property names, we do a kabab-case to camel-case translation for
> all of the names in JavaScript, i.e. cts:uri-match() in XQuery is
> cts.uriMatch() in JavaScript.
> >
> > Justin
> >
> >> On Mar 31, 2017, at 3:31 AM, Andreas Felix <andreas.fe...@ebcont.com>
> wrote:
> >>
> >> Hi,
> >> i need to fetch uris by wildcard, eg. foo*
> >> In xquery i use the cts:uri-match function for this.
> >> Does anybody know how so solve this with the Java-API?
> >>
> >> Regards
> >> Andreas
> >> _______________________________________________
>
>
_______________________________________________
General mailing list
General@developer.marklogic.com
Manage your subscription at: 
http://developer.marklogic.com/mailman/listinfo/general

Reply via email to