Ace DNN excels in building and
hosting large websites using DotNetNuke

Subscribe to Ace DNN Blogs

 

 

 

 

 

 

 

 

 

 

 

 

Elastic Search in DNN

Elastic search is an open source search server built on Apache Lucene to provide a scalable search solution with built in support for real time search and multi-tenacy. Due to its distributed nature and real time abilities, it is mainly used as a document database after installing dnn.

What we did with Elastic search in DNN:

We recently worked on Elastic search in dotnetnuke to enhance the search on the application.

First of all we created a new module from “Christoc's DotNetNuke Module” template

We used Elasticsearch.Net to use Elastic search in our module

Using Elastic Search Wrapper in DNN Module:

From the Package Manager Console inside Visual Studio:

Or search for Elasticsearch.Net in the Package Manager GUI.

Connecting:

We are managing host url from module setting

Calling an API Endpoint:

Then we need to maps to all Elastic search API endpoints.

Will execute a GET to /myindex/mytype/1/_source?routing=routingvalue. All the methods and arguments are fully documented based on the documentation of the specification.

As you can see Elasticsearch.Net also strongly types the querystring parameters that it knows exist on an endpoint with full Intellisense documentation. Unknown querystring parameters can still be added in Elastic search in dnn:

The querystring parameter is always optional.

Providing a Request Body

You can specify a request body directly with a string:

This will execute a POST to /myindex/mytype/1 with the provided string myJson passed verbatim as request body.
Alternatively, you can specify an anonymous object while executing Elastic search in dnn:

This will execute the same request, but this time myJson will be serialized by the registered ISerializer.

Please contact us incase you need any assistance with Elastic search in DNN.

cheap nba jerseys wholesale nba jerseys discont nba jerseys cheap nba jerseys wholesale nba jerseys discont nba jerseys cheap nike nba jerseys wholesale nike nba jerseys discount nike nba jerseys cheap nike nba jerseys wholesale nike nba jerseys discount nike nba jerseys cheap nfl jerseys wholesale nfl jerseys discount nfl jerseys cheap nba jerseys wholesale nba jerseys discount nba jerseys cheap nba jerseys wholesale nba jerseys discount nba jerseys cheap nba jerseys wholesale nba jerseys discount nba jerseys cheap nba jerseys wholesale nba jerseys discount nba jerseys cheap nba jerseys wholesale nba jerseys discount nba jerseys cheap nba jerseys wholesale nba jerseys discount nba jerseys cheap nba jerseys wholesale nba jerseys discount nba jerseys cheap nba jerseys wholesale nba jerseys discount nba jerseys cheap nba jerseys wholesale nba jerseys discont nba jerseys cheap nba jerseys wholesale nba jerseys discont nba jerseys cheap nba jerseys wholesale nba jerseys discont nba jerseys discount nba jerseys wholesale nba jerseys cheap nba jerseys cheap nba jerseys wholesale nba jerseys discount nba jerseys cheap nba jerseys wholesale nba jerseys discount nba jerseys