-Rich
I currently have ~65,000 tracks consuming around 500GB of space. I
deployed the server on VM in our datacenter space with 2GB of RAM on a
Xeon 5160 Processor. I usually use the default ordering which I
believe is "Modified."
I just noticed some Lucene check-ins and I got excited.
-Rich
svn switch ^/branches/rh-solr-0.5.0
cd path/to/streeme/plugins/
git clone git://github.com/rande/sfSolrPlugin.git
open path/to/streeme/config/projectConfiguration.class.php and
uncomment the sfsolrplugin line
open path/to/streeme/apps/client/config/app.yml.template and copy the
new indexer configs at the bottom to your app.yml file.
type: ./symfony cc
./symfony solr start
./symfony media-index --env=prod
Now go into the desktop or mobile app and try searching. let me know
how it goes. I'm also vaguely interested in making a mysql fulltext
search as well - I'll let you know when that one's ready too.
One other thing to note is that Solr starts on port 8983, has a web
interface and is not password protected. You should make sure port
8983 is not accessible through your router.
That's it - hope it significantly boosts the speed of searching - it
sure did on my end.
-Rich
To use this indexer (most of the same steps as the solr version
above):
svn switch ^/branches/rh-solr-0.5.0
open path/to/streeme/apps/client/config/app.yml.template and copy the
new indexer configs at the bottom to your app.yml file.
change class: StreemeIndexerSolr to StreemeIndexerMysql
type: ./symfony cc
./symfony mysql initialize (this will add the indexer table
and fulltext index to your existing mysql project)
./symfony media-index --env=prod
again, go to the desktop or mobile app and try searching
You may want to capture the speeds of your searches using firebug or
chrome web inspector. That's probably the easiest way to benchmark the
two fulltext implementations.
-Rich
Thank you! Thank you! Thank you!
I have not tested Solr yet, however I wanted to let you know that
MySQL full-text search is such an improvement. Its almost like
iTunes. :)
Solr seems to return results more like what I was accustomed to with
Streeme before adding these indexers. MySQL also performs well but
returns more irrelevant results (results that match a single word in
the search string as opposed to all of the words). I think I prefer
the implicit "and" treatment in Streeme's original search feature.
I didn't benchmark the results yet, but they both seem incredibly
fast.
I added the following to my iptables for solr:
sudo iptables -A INPUT -p tcp -s 127.0.0.1 --dport 8983 -j ACCEPT
sudo iptables -A INPUT -p tcp --dport 8983 -j DROP
I inserted: $keywords = '"'.$keywords.'"';
above: $keywords = sprintf('*%s*', $keywords);
This search results are now consistent with results presented before
the indexer was enabled.