Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

Databases

dylan kane
dylan kane
2,772 Points

Solr lucene help!

I am trying to have a search bar in my web app come up with results from my mongo db (btw I'm using meteor) so I decided to use solr. everyone says its great for what I'm trying to do, so I installed it and got it working on my computer. Sadly, that's as far as the tutorial takes you really on their site, and every other tutorial on the internet is apparently out of date. perhaps I'm so inexperience with this that I'm just missing something easy in terms of using it for my own web app, or maybe this isnt the right app for me to use at all, I'm not sure. Any information on the subject would be great, like if solr is the right choice for me, how to plug it into my own web app, or even a place I can go to learn more about this field. The web app domain is a very dauntingly large complexity of so many things and I just get overwhelmed with the amount of it so really anything would be great to hear, thanks!

1 Answer

Ken Alger
STAFF
Ken Alger
Treehouse Teacher

Dylan;

I have not used Apache Solr, but it seems like it offers the functionality for which you are seeking to add to your project. Perhaps a bit more information about the project would be helpful in terms of how to associate all of the data you are attempting to get and what you want to achieve.

Ken

dylan kane
dylan kane
2,772 Points

Hi ken, here is some more info about the project

In my mongo database I have each document set up like this example:

{ "_id" : ObjectId("568178a1e1cf4f20239d576d"), "title" : "Call of Duty: Black Ops 3", "console" : [ { "xbox1" : true }, { "ps4" : true }, { "pc" : true } ], "category" : "shooter", "img" : "../gameCovers/codbo3.jpg" }

I have a bunch of games in this exact format, only with different values in the json object. Now switching over to the search bar I want to work, the user will type in a value like the title, so basically any game name. If the database has a title like the one which the user typed in, it will bring up all the values I have entered in the object.

Ken Alger
Ken Alger
Treehouse Teacher

See my answer to your other post on this same topic.