Rohan
Rohan

Reputation: 11

Search operation with marklogic database using .net core

How can I search and retrieve data from the MarkLogic database using a .NET application?

Suppose inside MarkLogic is a document with the URI /dotnet/page.json and JSON data like

{ "Name":"John","Area":"AAA", "code":"3" }

I want to search for that data using .NET to fetch all the data where the code 3 is present. Maybe from a specific document or collection. Any solution will be helpful with .NET.

Upvotes: 0

Views: 180

Answers (1)

Dave Cassel
Dave Cassel

Reputation: 8422

MarkLogic provides APIs for Java and Node.js, but there isn't one specifically for .NET. That said, you can talk to MarkLogic with any language that can send HTTP requests, by using the REST API, as noted by Michael Gardner. To do a search like the one you described, you could send a GET request to /v1/search.

Besides the documentation, MarkLogic University provides free live and on-demand training. I encourage you to take a look at the developer track.

Upvotes: 2

Related Questions