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.

Nike Roshe Run Nike Roshe Run Womens Cheap Nike Roshe Run Cheap Nike Roshe Uk Online Sale buy cheap nike roshe run online cheap roshe run on sale Nike Roshe Run nike Roshe Run Women cheap Nike Roshe Run Uk cheap gucci belts replica gucci belts wholesale gucci belts cheap gucci belts replica louis vuitton belts cheap louis vuitton belts fake louis vuitton belt cheap gucci belts Gucci Belt For Men Gucci Belt Cheap Gucci Belt cheap gucci belts cheap Louis Vuitton belts cheap ferragamo belts cheap gucci belts Cheap YSL Belts Louis Vuitton Belts On Sale replica gucci belts Cheap YSL Belts replica Louis Vuitton Belts cheap gucci belts online fake gucci Belts replica Louis Vuitton Belts cheap nba jerseys cheap nfl jerseys cheap mlb jerseys cheap nhl jerseys wholesale nba jerseys wholesale nfl jerseys wholesale mlb jerseys wholesale nhl jerseys cheap nfl jerseys from china discount nba jerseys wholesale nba jerseys cheap nba jerseys discount nba jerseys wholesale nba jerseys cheap nba jerseys discount nba jerseys wholesale nba jerseys cheap nba jerseys discount nba jerseys wholesale nba jerseys cheap nba jerseys discount nba jerseys wholesale nba jerseys cheap nba jerseys discount nba jerseys wholesale nba jerseys cheap nba jerseys discount nba jerseys wholesale nba jerseys cheap nba jerseys discount nba jerseys wholesale nba jerseys cheap nba jerseys discount nba jerseys wholesale nba jerseys cheap nba jerseys discount nba jerseys wholesale nba jerseys cheap nba jerseyscheap nba jerseys wholesale nba jerseys discount nba jerseys cheap nba jerseys wholesale nba jerseys discount nba jerseys