elmzteam / downtothewire

Down to the Wire
https://dttw.tech/
3 stars 3 forks source link

Add search #19

Open bluepichu opened 8 years ago

bluepichu commented 8 years ago

As discussed in #18.

zwade commented 8 years ago

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

Thoughts?

el1t commented 8 years ago

Stores data in database

More volatile than fs

Shouldn't it be the other way around?

bluepichu commented 8 years ago

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

zwade commented 8 years ago

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 commented 8 years ago

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 commented 8 years ago

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.