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

Add search #19

Open
bluepichu opened this issue Jan 14, 2016 · 6 comments
Open

Add search #19

bluepichu opened this issue Jan 14, 2016 · 6 comments

Comments

@bluepichu
Copy link
Contributor

As discussed in #18.

@zwade
Copy link
Contributor

zwade commented Jan 28, 2016

So right now, posts are stored in the fs for reliability reasons. However, since mongo can't index them, it makes it a pain in the neck to do searching. The way I see it, we have three options

  • Keep everything as it is, but not have search functionality over post content
  • Move post content to the db for easy searching, but risk volatility
  • On startup, duplicate fs into db for indexing, which is somewhat wasteful, and makes content management a pain

Thoughts?

@el1t
Copy link
Contributor

el1t commented Jan 28, 2016

Stores data in database

More volatile than fs

Shouldn't it be the other way around?

@bluepichu
Copy link
Contributor Author

@zwade we should revisit this, particularly since you're already doing a bunch of post restructuring anyway.

@zwade
Copy link
Contributor

zwade commented Jun 28, 2016

Yeah, it might not be a terrible idea to move posts into the database. I still kinda prefer the idea of a hard copy (in a cash-under-the-mattress sort of way), but I think the benefits of a transition outway the potential risk

@zwade
Copy link
Contributor

zwade commented Jun 28, 2016

With that in mind though, it would be easier to do that before dealing with slugs and stuff, so I may push the guid version first, and have slugs in a different PR.

@bluepichu
Copy link
Contributor Author

This should be relatively straightforward using mongo's built-in text score once #106 goes through. However, we'll probably also want to add in extra relevance weight for tags, title, and author name.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants