Difference between solr and lucene

@darkheir: Lucene and Solr are 2 differents Apache projects that are made to work together, I don’t understand what is the aim of each project. Solr uses Lucene under the hood. Lucene has no clue about the Solr API. Lucene is a powerful search engine framework that lets us add search capability to our application. … Read more

Nginx not caching data

You didn’t tell NGINX for how much time the response is valid and must be served from cache. This must be specified with proxy_cache_valid directive. proxy_cache one; proxy_cache_key $host$uri$is_args$args; proxy_cache_valid 200 10m; But, this won’t work for POST requests because you have no cache key that differs from a POST request to another on the … Read more

Choosing a stand-alone full-text search server: Sphinx or SOLR? [closed]

I’ve been using Solr successfully for almost 2 years now, and have never used Sphinx, so I’m obviously biased. However, I’ll try to keep it objective by quoting the docs or other people. I’ll also take patches to my answer 🙂 Similarities: Both Solr and Sphinx satisfy all of your requirements. They’re fast and designed … Read more

How does one get tomcat to bind to ipv4 address?

Many suggested updating catalina.sh startup script. Yes, that solution would work, but catalina.sh script is not meant to be customized/updated. All changes should go into the customization script instead, i.e. setenv.sh. NOTE: TOMCAT_HOME/bin/setenv.sh doesn’t exist by default, you need to create it. Check the catalina.sh script and you will see the startup script checks if … Read more

Solr vs. ElasticSearch [closed]

Update Now that the question scope has been corrected, I might add something in this regard as well: There are many comparisons between Apache Solr and ElasticSearch available, so I’ll reference those I found most useful myself, i.e. covering the most important aspects: Bob Yoplait already linked kimchy’s answer to ElasticSearch, Sphinx, Lucene, Solr, Xapian. … Read more