Giter Club home page Giter Club logo

Comments (8)

amirgamil avatar amirgamil commented on July 23, 2024

Hey! Sorry, I forgot I'd changed the implementation, I've updated the README, but you wanna put return make(map[string]schema.Data) instead of return make([]schema.Data). That should fix it!

from apollo.

pcause avatar pcause commented on July 23, 2024

another small thing and one bigger. that the .env file belongs in the root is unclear. given positioning it seems to imply belongs in data.

second: i went to the add page, which isn't documented at all, except in the "see what happens". I enter a URL but don't see the scrape button unless I add something into the content box. I click scrape but don't get the full page content. I actually pointed it at the apollo github main page. nothing is in the data directory.

from apollo.

pcause avatar pcause commented on July 23, 2024

another small thing and one bigger. that the .env file belongs in the root is unclear. given positioning it seems to imply belongs in data.

second: i went to the add page, which isn't documented at all, except in the "see what happens". I enter a URL but don't see the scrape button unless I add something into the content box. I click scrape but don't get the full page content. I actually pointed it at the apollo github main page. nothing is in the data directory.

also, can the yrl be file://some/linux/path? can it be a directory so that you get all the files?

from apollo.

amirgamil avatar amirgamil commented on July 23, 2024

Yep, fair points, let me update the README right now

from apollo.

amirgamil avatar amirgamil commented on July 23, 2024

Done - 2c3ab74
If you still don't think it's clear, feel free to submit a PR!

from apollo.

pcause avatar pcause commented on July 23, 2024

I type a link in the link box bu nothing happens. I thried this:

https://commonmark.org/help/

and it changed the title and put some text in the box but when i went to search nothing at all. So seems to get the title, etc but no content. All of the files in the data directory (sources,index,local) are all zero length. I am using firefox.

Added: Got working with a different browser. Scraped and the scrape and add buttons are there. I assume I tap add after scraping? Still couldn't get search results even though i see the text in the local.json.

from apollo.

amirgamil avatar amirgamil commented on July 23, 2024

A couple of things:

  1. The web scraper is optimized for "digital writing" i.e. blog posts, articles etc. What you pasted won't work correctly because there's nothing meaningful for the web scraper to scrape! Try pasting something that is closer to that format (e.g. http://www.paulgraham.com/hwh.html)
  2. The README explains that syncing happens once every 3 days. You can manually change that in the code in cmd/apollo.go if you want to immediately see a change, or refresh the inverted index every time you add something new
    Hope this helps :)

from apollo.

pcause avatar pcause commented on July 23, 2024

thanks.

from apollo.

Related Issues (10)

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.