# Error when trying to implement jqeury for siteseaerch

**URL:** <https://discuss.elastic.co/t/error-when-trying-to-implement-jqeury-for-siteseaerch/186684>\
**Category:** Elastic Search\
**Tags:** elastic-site-search\
**Created:** [June 20, 2019, 12:30pm UTC](https://discuss.elastic.co/t/error-when-trying-to-implement-jqeury-for-siteseaerch/186684 "2019-06-20T12:30:59Z")\
**Posts on this page:** 11\
**Page:** 1

<div class="post-metadata">

**Author:** ![elitzur\_e](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/elitzur_e/32/48445_2.png) [@elitzur\_e](https://discuss.elastic.co/u/elitzur_e)\
**Post date:** [June 20, 2019, 12:30pm UTC](https://discuss.elastic.co/t/error-when-trying-to-implement-jqeury-for-siteseaerch/186684/1 "2019-06-20T12:30:59Z")

</div>

Hi.  
im am following this official guide for jQuery Plugin Guide:

> **[jQuery Plugin Guide | Swiftype Documentation](https://swiftype.com/documentation/site-search/guides/jquery)**
>
> Learn how to get the most out of Swiftype

when loading the needed scripts i get an error:

Uncaught TypeError: Cannot read property 'msie' of undefined  
at jquery.ba-hashchange.min.js:9

is this guide out of date? has anyone tried to use it?

thanks

---

<div class="post-metadata">

**Author:** ![elitzur\_e](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/elitzur_e/32/48445_2.png) [@elitzur\_e](https://discuss.elastic.co/u/elitzur_e)\
**Post date:** [June 23, 2019, 2:25pm UTC](https://discuss.elastic.co/t/error-when-trying-to-implement-jqeury-for-siteseaerch/186684/2 "2019-06-23T14:25:56Z")

</div>

so.. anyone?

---

<div class="post-metadata">

**Author:** ![JasonStoltz](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/jasonstoltz/32/49893_2.png) [@JasonStoltz](https://discuss.elastic.co/u/JasonStoltz)\
**Post date:** [June 27, 2019, 12:48pm UTC](https://discuss.elastic.co/t/error-when-trying-to-implement-jqeury-for-siteseaerch/186684/3 "2019-06-27T12:48:57Z")

</div>

@elitzur_e I'm not familiar with this guide. Will run through it later today and see if I can give you some help.

---

<div class="post-metadata">

**Author:** ![JasonStoltz](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/jasonstoltz/32/49893_2.png) [@JasonStoltz](https://discuss.elastic.co/u/JasonStoltz)\
**Post date:** [July 1, 2019, 7:17pm UTC](https://discuss.elastic.co/t/error-when-trying-to-implement-jqeury-for-siteseaerch/186684/4 "2019-07-01T19:17:53Z")

</div>

@elitzur_e Hello, I apologize for the delay. I just ran through it myself. It was unfortunately out of date. I am in the process of updating that documentation.

The reason you are seeing those errors is because the library no longer relies on "jquery.ba-hashchange.min.js". If you simply remove that from the example code, your error should be resolved.

---

<div class="post-metadata">

**Author:** ![goodroot](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/goodroot/32/38389_2.png) [@goodroot](https://discuss.elastic.co/u/goodroot)\
**Post date:** [July 4, 2019, 6:03pm UTC](https://discuss.elastic.co/t/error-when-trying-to-implement-jqeury-for-siteseaerch/186684/5 "2019-07-04T18:03:49Z")

</div>

Hi there ~

@JasonStoltz updated the jQuery guide -- it should not lead you down a rabbit hole this time. 🙂

> **[Faceted Search Guide | Swiftype Documentation](https://swiftype.com/documentation/site-search/guides/faceted-search)**
>
> Learn how to get the most out of Swiftype

Enjoy the day,

Kellen

---

<div class="post-metadata">

**Author:** ![elitzur\_e](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/elitzur_e/32/48445_2.png) [@elitzur\_e](https://discuss.elastic.co/u/elitzur_e)\
**Post date:** [July 5, 2019, 5:24am UTC](https://discuss.elastic.co/t/error-when-trying-to-implement-jqeury-for-siteseaerch/186684/6 "2019-07-05T05:24:27Z")

</div>

Thanks for that. Ill check.  
Makes me wonder why am i the only one using this guide. Is there a different newer alt? ...

---

<div class="post-metadata">

**Author:** ![goodroot](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/goodroot/32/38389_2.png) [@goodroot](https://discuss.elastic.co/u/goodroot)\
**Post date:** [July 8, 2019, 3:22pm UTC](https://discuss.elastic.co/t/error-when-trying-to-implement-jqeury-for-siteseaerch/186684/7 "2019-07-08T15:22:56Z")

</div>

Good day ~

jQuery is a reliable technology, but it seems many people are looking at more "modern" frameworks.

We've recently released [Search UI](https://github.com/elastic/search-ui). It's a JavaScript library; if you're interested in React, it's a great way to build robust and customizable search experiences with minimal effort.

It has a Site Search connector so there's no extra configuration required outside the UI.

Enjoy the week,

Kellen

---

<div class="post-metadata">

**Author:** ![elitzur\_e](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/elitzur_e/32/48445_2.png) [@elitzur\_e](https://discuss.elastic.co/u/elitzur_e)\
**Post date:** [July 9, 2019, 11:33am UTC](https://discuss.elastic.co/t/error-when-trying-to-implement-jqeury-for-siteseaerch/186684/8 "2019-07-09T11:33:37Z")

</div>

well i looked in to it.

first it seemed to be still in beta (no final release out - 0.12 is out) and i need something more production worthy.

second, i tried using it:

it seems to have little documentations about using it with site search connector and even less with site search with crawler base engine.

so far the application crashes when trying to connect it to a site search (with crawler base engine)

unless I'm missing something? 🙂

---

<div class="post-metadata">

**Author:** ![goodroot](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/goodroot/32/38389_2.png) [@goodroot](https://discuss.elastic.co/u/goodroot)\
**Post date:** [July 9, 2019, 7:30pm UTC](https://discuss.elastic.co/t/error-when-trying-to-implement-jqeury-for-siteseaerch/186684/9 "2019-07-09T19:30:26Z")

</div>

You're right -- the documentation is sparse. To start, we've focused on making the experience with App Search more tidy. Site Search will follow, once we have a better place to put documentation other than the README.

Do you have any logs you can show which show the crash? Or configuration snippets?

---

<div class="post-metadata">

**Author:** ![elitzur\_e](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/elitzur_e/32/48445_2.png) [@elitzur\_e](https://discuss.elastic.co/u/elitzur_e)\
**Post date:** [July 10, 2019, 2:05pm UTC](https://discuss.elastic.co/t/error-when-trying-to-implement-jqeury-for-siteseaerch/186684/10 "2019-07-10T14:05:46Z")

</div>

hi,  
i made a new topic about it just to stay keep things in order:

> [@Error when using search ui and site search - map is undefined](https://discuss.elastic.co/t/error-when-using-search-ui-and-site-search-map-is-undefined/189786):
>
> hi im using the latest search-ui (0.12) with the example code that works fine. when changing it to use the site search connector and updating the .env file (and some other small stuff to match it) i went on to remove all the facets etc. to have the minimum needed to have a search page. i used a search engine that already scanned one of my sites (apx. 2k pages) I get this error in the page: An unexpected error occurred: Cannot read property 'map' of undefined this is the app.js: [https://js…](https://jsfiddle.net/viper123/7h1wx2vo/)

can you take a look please?

thanks 🙂

---

<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:** [August 7, 2019, 2:05pm UTC](https://discuss.elastic.co/t/error-when-trying-to-implement-jqeury-for-siteseaerch/186684/11 "2019-08-07T14:05:51Z")

</div>

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