[MarkLogic Dev General] rest search using range index

Erik Hennum Erik.Hennum at marklogic.com
Mon Mar 30 10:29:30 PDT 2015


Hi, Paul:

On 8.0-1, there appears to be a bug.  I inserted a JSON document consisting of

    {"kwd":"Aluminum"}

and could retrieve it with

    http://localhost:PORT/v1/keyvalue?element=kwd&value=Aluminum

but not with

    http://localhost:PORT/v1/keyvalue?key=kwd&value=Aluminum

That said, the keyvalue endpoint is deprecated in favour of the qbe (Query by Example) or search endpoints, so you don't want to write any new code against that endpoint.


Hoping that helps,


Erik Hennum

________________________________
From: general-bounces at developer.marklogic.com [general-bounces at developer.marklogic.com] on behalf of Paul M [pjmaip at yahoo.com]
Sent: Monday, March 30, 2015 7:54 AM
To: general at developer.marklogic.com
Subject: [MarkLogic Dev General] rest search using range index

This search works as expected when entered in GUI and http server:

  localhost:xxx/?q=kwd%3AAluminium

this works as well using REST:

  localhost:xxx/v1/search?q=Aluminum

this does not work using REST:

localhost:xxx/v1/keyvalue?element=kwd&value=Aluminum

Documentation is a bit unclear. Is the last version supposed to work? If not, why not?

-Paul

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://developer.marklogic.com/pipermail/general/attachments/20150330/763ba90c/attachment-0001.html 


More information about the General mailing list