Giter Club home page Giter Club logo

guttenberg-search's People

Contributors

triestpa avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

guttenberg-search's Issues

Please can you help me to host Guttenberg-search on heroku?

Hi,
For covid-19 https://github.com/opencovid19-fr/data, we need a search engine that can help to quickly find some volunteers who have registered themself into a googleform. As soon as I have an app, I will a manually transfert volunteers from a googlesheet file to a database. I found your app, it looks perfect (ty!) and I began to work on it. But i failed to implement on heroku. I first tried to upload a modified version I built by following step by step yours instructions(https://blog.patricktriest.com/text-search-docker-elasticsearch/), without success. Then I tried to upload the original code onto my heroku (https://devcenter.heroku.com/articles/local-development-with-docker-compose#pushing-your-containers-to-heroku), but it fails too : https://dataagainstcovid-search.herokuapp.com/
I made only 1 modification : changing 8080:80 to 80:80, in docker compose, because heroku ask for service that runs on 80 (AFAIK : https://stackoverflow.com/questions/28706180/setting-the-port-for-node-js-server-on-heroku).

I really know bad ES. Would u mind to indicate what should be done IYO to build Guttenberg-search on heroku? Thank you in advance for any help or advice.

heroku logs
2020-03-25T12:32:54.740732+00:00 app[web.1]: Elasticsearch WARNING: 2020-03-25T12:32:54Z
2020-03-25T12:32:54.740750+00:00 app[web.1]: Unable to revive connection: http://localhost:9200/
2020-03-25T12:32:54.740751+00:00 app[web.1]:
2020-03-25T12:32:54.740930+00:00 app[web.1]: Elasticsearch WARNING: 2020-03-25T12:32:54Z
2020-03-25T12:32:54.740932+00:00 app[web.1]: No living connections
2020-03-25T12:32:54.740932+00:00 app[web.1]:
2020-03-25T12:32:54.741365+00:00 app[web.1]: Server Error { Error: No Living connections
2020-03-25T12:32:54.741366+00:00 app[web.1]: at sendReqWithConnection (/usr/src/app/node_modules/elasticsearch/src/lib/transport.js:225:15)
2020-03-25T12:32:54.741367+00:00 app[web.1]: at next (/usr/src/app/node_modules/elasticsearch/src/lib/connection_pool.js:213:7)
2020-03-25T12:32:54.741368+00:00 app[web.1]: at _combinedTickCallback (internal/process/next_tick.js:132:7)
2020-03-25T12:32:54.741368+00:00 app[web.1]: at process._tickCallback (internal/process/next_tick.js:181:9)
2020-03-25T12:32:54.741369+00:00 app[web.1]: message: 'No Living connections',
2020-03-25T12:32:54.741369+00:00 app[web.1]: body: undefined,
2020-03-25T12:32:54.741369+00:00 app[web.1]: status: undefined }

On the webapp :

https://dataagainstcovid-search.herokuapp.com/search?term=java
// Internal Server Error

Parsing fails on 815 txt file?

https://www.gutenberg.org/ebooks/815.txt.utf-8

The above file might have some content that changed recently which causes an error while parsing. It results in an error as shown below:

Reading File - 815.txt
Reading Book - Democracy In America, Volume 1 (of 2) By Alexis de Toqueville
TypeError: Cannot read property 'index' of null
    at parseBookFile (/usr/src/app/server/load_data.js:41:45)
    at readAndInsertBooks (/usr/src/app/server/load_data.js:19:45)
    at <anonymous>
    at process._tickCallback (internal/process/next_tick.js:189:7)

For now, temporary fix is to remove https://www.gutenberg.org/ebooks/815.txt.utf-8 from download_links.txt file. But if this book is important, then I guess regex might have to be updated while getting the "START" match.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.