# What is the best (and easiest) way to insert Elasticsearch into a website?

**URL:** <https://discuss.elastic.co/t/what-is-the-best-and-easiest-way-to-insert-elasticsearch-into-a-website/108329>\
**Category:** Elasticsearch\
**Created:** [November 20, 2017, 7:35am UTC](https://discuss.elastic.co/t/what-is-the-best-and-easiest-way-to-insert-elasticsearch-into-a-website/108329 "2017-11-20T07:35:24Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Liron1379](https://avatars.discourse-cdn.com/v4/letter/l/dec6dc/32.png) [@Liron1379](https://discuss.elastic.co/u/Liron1379)\
**Post date:** [November 20, 2017, 7:35am UTC](https://discuss.elastic.co/t/what-is-the-best-and-easiest-way-to-insert-elasticsearch-into-a-website/108329/1 "2017-11-20T07:35:24Z")

</div>

Hi there!  
I'm writing a website in HTML and C#, in an offline environment (no global internet, on a private network).

I'm struggling with inserting and using Elasticsearch from the website code.  
I've searched for tutorials all over the internet but all of them was missing some information (about what file, and what type of packages should I use to make it work that way).

Can anyone post here the easiest and fastest way to interact with Elasticsearch via visual studio and HTML?  
Thanks in advance!

---

<div class="post-metadata">

**Author:** ![dadoonet](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dadoonet/32/137187_2.png) [@dadoonet](https://discuss.elastic.co/u/dadoonet)\
**Post date:** [November 20, 2017, 8:20am UTC](https://discuss.elastic.co/t/what-is-the-best-and-easiest-way-to-insert-elasticsearch-into-a-website/108329/2 "2017-11-20T08:20:30Z")

</div>

You are writing pure HTML code or are you generating the website from whatever content you have in a database.

If the former, you need to crawl your website. There are some open source solutions for this like

> **[infinitbyte/gopa](https://github.com/infinitbyte/gopa)**
>
> gopa - GOPA, a spider written in Go. DEMO: https://index.elasticsearch.cn

You can also look at [Swiftype](https://swiftype.com/). There is an enterprise edition which does not require going on internet.

If the later, I'd extract the structured data from the database and index that instead of HTML pages which are not really structured.

---

<div class="post-metadata">

**Author:** ![Liron1379](https://avatars.discourse-cdn.com/v4/letter/l/dec6dc/32.png) [@Liron1379](https://discuss.elastic.co/u/Liron1379)\
**Post date:** [November 20, 2017, 8:39am UTC](https://discuss.elastic.co/t/what-is-the-best-and-easiest-way-to-insert-elasticsearch-into-a-website/108329/3 "2017-11-20T08:39:05Z")

</div>

Thanks for your reply!  
That's a pure HTML.  
I've indexed a few milions of jsons and I want to allow my users a full text search on them.  
I'm trying to use [asp.net](http://asp.net) website, but can't seem to "inject" Elasticsearch into use from the search bar.

---

<div class="post-metadata">

**Author:** ![dadoonet](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dadoonet/32/137187_2.png) [@dadoonet](https://discuss.elastic.co/u/dadoonet)\
**Post date:** [November 20, 2017, 10:25am UTC](https://discuss.elastic.co/t/what-is-the-best-and-easiest-way-to-insert-elasticsearch-into-a-website/108329/4 "2017-11-20T10:25:26Z")

</div>

> That's a pure HTML.

Is confusing because then you write:

> I've indexed a few milions of jsons

Which mean structured data somehow.

> I'm trying to use [asp.net](http://asp.net) website, but can't seem to "inject" Elasticsearch into use from the search bar.

I don't know what you mean actually.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [December 18, 2017, 10:25am UTC](https://discuss.elastic.co/t/what-is-the-best-and-easiest-way-to-insert-elasticsearch-into-a-website/108329/5 "2017-12-18T10:25:42Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
