Just wanted to jump in and explain why I made 2 solr "directories". There were a few times when our solr indexing schema/config was out of sync with our front-end solr. I had made some changes to the front-end solr files, but because our indexer was not using the same/up-to-date solr we ran into some problems. So my idea was for the indexer to use the same solr as the front-end. And by that, I mean SVN externals.<br>
<br>So, trunk/rails/solr is an SVN externals link to trunk/solr. But we still have to SVN externals the blacklight_indexer stuff. If you look at the following directory, you won't see "solr" in the listing. It gets pulled in when you do a checkout/update:<br>
<br><a href="http://blacklight.rubyforge.org/svn/trunk/rails/">http://blacklight.rubyforge.org/svn/trunk/rails/</a><br><br>Does that help? <br><br>Bob, if you want... you can sync up your indexer's solr by doing:<br>
<br>
export SVN_EDITOR=<YOUR TEXT EDITOR><br>
cd blacklight_importer<br>
svn pe svn:externals .<br>
<br>
When your text editor opens, add this to the first line:<br>
<br>
solr <a href="http://blacklight.rubyforge.org/svn/trunk/solr">http://blacklight.rubyforge.org/svn/trunk/solr</a><br>
<br>
Do a commit and you'll be good to go! Then you can start using the blacklight_importer/solr as your solr home. Any time I make a change and commit, you'll download the changes when you run an update. I've already added svn:ignore to the solr/data dir.<br>
<br>Matt<br><br><div class="gmail_quote">On Fri, May 16, 2008 at 5:08 PM, Naomi Dushay <<a href="mailto:ndushay@stanford.edu">ndushay@stanford.edu</a>> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Bess,<br>
<br>
This is helpful information. I think explanations in the readme is probably sufficient. At this "get the prototype running, check out features, use local data" stage, it was more a point of curiosity as to why there were two solr directories.<br>
<br>
Like so many others, we are evaluating blacklight and other next generation disocvery environments, so understanding how to do things such as configure code for your institution's practices, for production vs. testing and so on is really helpful.<br>
<br>
- Naomi<br>
who got the incorrect title of the Beatles song: "Within You Without You" is the correct title<div><div></div><div class="Wj3C7c"><br>
<br>
On May 16, 2008, at 12:11 PM, Elizabeth Sadler wrote:<br>
<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Hi, Naomi.<br>
<br>
Well, you're right, it probably shouldn't come that way by default. The thing is, we haven't really settled on a good "out of the box" way to run blacklight. For testing purposes, you can run a copy of solr locally, and that's what that solr directory inside the rails directory is doing there. I think its also handy for running unit tests. However, you get greatly increased performance if you can run solr on a separate server from the rails side of things, and to make that easy we've split out a solr directory that could easily be checked out to that other server.<br>
<br>
So for me, if I'm just playing around trying to see if something runs and is passing tests, I fire it up and use the default (internal) solr. If I'm for reals setting up a new installation, I check out rails on one machine, I check out the external solr on a different machine, configure them and make them talk to each other.<br>
<br>
Is it too confusing to have both of them in the checkout, though? Would it help if we put something in the readme? I'm in the process of writing up a pretty detailed description of how we set up a production instance of blacklight... maybe that will also help?<br>
<br>
Bess<br>
<br>
On 16-May-08, at 2:19 PM, Naomi Dushay wrote:<br>
<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
I was just examining the blacklight code, and it appears the code I<br>
pulled down from SVN has a solr directory both inside the rails<br>
directory and also at the same level as the rails directory. Is this<br>
intentional?<br>
<br>
- Naomi<br>
(who suddenly is thinking of the Beatles song "Across the<br>
Universe" ... within you and without you ...<br>
_______________________________________________<br>
Blacklight-development mailing list<br>
<a href="mailto:Blacklight-development@rubyforge.org" target="_blank">Blacklight-development@rubyforge.org</a><br>
<a href="http://rubyforge.org/mailman/listinfo/blacklight-development" target="_blank">http://rubyforge.org/mailman/listinfo/blacklight-development</a><br>
</blockquote>
<br>
Elizabeth (Bess) Sadler<br>
Research and Development Librarian<br>
Digital Scholarship Services (DSS)<br>
Box 400129<br>
Alderman Library<br>
University of Virginia<br>
Charlottesville, VA 22904<br>
<br>
<a href="mailto:bess@virginia.edu" target="_blank">bess@virginia.edu</a><br>
(434) 243-2305<br>
<br>
<br>
_______________________________________________<br>
Blacklight-development mailing list<br>
<a href="mailto:Blacklight-development@rubyforge.org" target="_blank">Blacklight-development@rubyforge.org</a><br>
<a href="http://rubyforge.org/mailman/listinfo/blacklight-development" target="_blank">http://rubyforge.org/mailman/listinfo/blacklight-development</a><br>
</blockquote>
<br></div></div><font color="#888888">
Naomi Dushay<br>
<a href="mailto:ndushay@stanford.edu" target="_blank">ndushay@stanford.edu</a></font><div><div></div><div class="Wj3C7c"><br>
<br>
<br>
<br>
_______________________________________________<br>
Blacklight-development mailing list<br>
<a href="mailto:Blacklight-development@rubyforge.org" target="_blank">Blacklight-development@rubyforge.org</a><br>
<a href="http://rubyforge.org/mailman/listinfo/blacklight-development" target="_blank">http://rubyforge.org/mailman/listinfo/blacklight-development</a><br>
</div></div></blockquote></div><br>