Viewing a single comment thread. View all comments

sudo wrote

I poked around in Raddit's source code a little bit. I should mention that I'm not a PHP programmer.

It looks like emma made something called a "SubmissionRepository", based on a third-party library's "EntityRepository". Guessing by the name, I assume this is a container that stores all of the submissions to the website, and it looks like each submission instance stores its own title, body, submitter, etc. that people would want to search for. So, what's stopping us from implementing a search function that searches through the array of posts, and returns a separate array with only the posts that match the search criteria? Again, I only took a cursory look at the code, and emma knows it much better than I do, but I don't see why we'd need to implement a giant third-party search library when a few functions should do.

2

[deleted] wrote (edited )

2

sudo wrote

Thanks for explaining. Elasticsearch does sound much nicer now; it's a shame it's such a memory hog.

2