Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added Elasticsearch example #240

Merged
merged 26 commits into from May 21, 2019
Merged

Added Elasticsearch example #240

merged 26 commits into from May 21, 2019

Conversation

JasonStoltz
Copy link
Member

@JasonStoltz JasonStoltz commented May 11, 2019

Description

This PR adds an example project which demonstrates using Search UI with Elasticsearch.

As noted in the README and elsewhere, when using Elasticsearch as a Search API, no connector is available, so we need to write Handlers ourselves.

This takes a bit more effort than using a Connector, but it provides a lot of flexibility. This example should give Elasticsearch users a bit of a head start when using Search UI.

This example is also deployed as a demo to Netlify, and uses an Elasticsearch instance proxied through an Netlify Function / AWS Lambda. I've noted in the README that proxying Elasticsearch is a best practice.

https://search-ui-stable-elasticsearch.netlify.com

List of changes

  • Added Elasticsearch example
  • Updated READMEs to include links to the demo

Associated Github Issues

Fixes #239

@netlify
Copy link

netlify bot commented May 11, 2019

Deploy preview for search-ui-sandbox ready!

Built with commit 5e7e27c

https://deploy-preview-240--search-ui-sandbox.netlify.com

@netlify
Copy link

netlify bot commented May 11, 2019

Deploy preview for search-ui-storybook ready!

Built with commit 5e7e27c

https://deploy-preview-240--search-ui-storybook.netlify.com

@@ -0,0 +1,135 @@
// This optional code is used to register a service worker.
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Boilerplate, no need to review.

@@ -0,0 +1,12 @@
import React from 'react';
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Boilerplate, no need to review.

@@ -0,0 +1,7 @@
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 841.9 595.3">
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Boilerplate, no need to review.

@@ -0,0 +1,13 @@
body {
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Boilerplate, no need to review.

@@ -0,0 +1,33 @@
.App {
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Boilerplate, no need to review.

@@ -0,0 +1,15 @@
{
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Boilerplate, no need to review.

@@ -0,0 +1,38 @@
<!DOCTYPE html>
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Boilerplate, no need to review.

@@ -0,0 +1,9 @@
import React from 'react';
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Boilerplate, no need to review.

@JasonStoltz JasonStoltz marked this pull request as ready for review May 11, 2019 01:53
Copy link
Contributor

@goodroot goodroot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cool -- a couple minor things.

examples/elasticsearch/README.md Show resolved Hide resolved
examples/elasticsearch/README.md Outdated Show resolved Hide resolved
examples/elasticsearch/src/buildRequest.js Outdated Show resolved Hide resolved
examples/elasticsearch/src/buildRequest.js Outdated Show resolved Hide resolved
examples/elasticsearch/src/buildRequest.js Outdated Show resolved Hide resolved
examples/elasticsearch/src/buildRequest.js Outdated Show resolved Hide resolved
examples/elasticsearch/src/buildState.js Outdated Show resolved Hide resolved
examples/elasticsearch/src/buildState.js Outdated Show resolved Hide resolved
JasonStoltz and others added 6 commits May 18, 2019 07:47
Co-Authored-By: Kellen <root@goodroot.ca>
Co-Authored-By: Kellen <root@goodroot.ca>
Co-Authored-By: Kellen <root@goodroot.ca>
Co-Authored-By: Kellen <root@goodroot.ca>
Co-Authored-By: Kellen <root@goodroot.ca>
@JasonStoltz JasonStoltz requested a review from goodroot May 18, 2019 11:57
@JasonStoltz
Copy link
Member Author

@goodroot Hey Kellen, just FYI, I made the changes you requested, mind having another look?

@JasonStoltz JasonStoltz merged commit 7554449 into master May 21, 2019
@JasonStoltz JasonStoltz deleted the elastic-handlers-spike branch May 21, 2019 18:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Create an Elasticsearch example
2 participants