One of the neat features of Drupal 7 is the integration between the date and
time handling, and the multi-language configurations.
If you enable the locale module, then you will be able to localize date strings
into the various languages enabled on your Drupal installation.
Custom date formats like the ones listed below may be added directly into the
Administrative interface in Drupal, but this requires in-depth knowledge of how
the PHP date formatting codes work. Therefore, developers can save their
clients’ time and head scratching by providing the most common date formats
used around the world in code, and non-technical client administrators may then
simply select the date format for a given language through the UI.
Out of the box Drupal provides three date formats “Long”, “Medium”, and “Short”,
all of which include the date and time. So here, we’ll provide a new custom date
format called “Post date” that we can use to exclude the time, and show only the
Solr is an open source enterprise search platform from the Apache Lucene project.
Its major features include powerful full-text search, hit highlighting, faceted
search, dynamic clustering, database integration, and rich document (e.g., Word,
PDF) handling. Providing distributed search and index replication, Solr is
Tap into homebrew versions, to get an earlier version of Solr 3.6.1
Homebrew currently comes with solr 4.0 configured. The Drupal apachesolr module
has only unstable bleeding edge integration, plus, we want to simulate the
version in our production environment, so we need to setup Homebrew to "tap"
into their versions functionality:
$ brew tap homebrew/versions
This functionality lets us list all the historic versions of any "Formula" (e.g.
solr). We can find the available versions of Solr, and select the one we need by
executing the git command provided.
The official installation and help documentation for Drupal apachesolr module
recommends 3.5.0 however I continually got 404 errors:
==> Downloading http://www.apache.org/dyn/closer.cgi?path=lucene/solr/3.5.0/apache-solr-3.5.0.tgz
==> Best Mirror http://apache.mirrors.lucidnetworks.net/lucene/solr/3.5.0/apache-solr-3.5.0.tgz
curl: (22) The requested URL returned error: 404
Copy the required files from the Drupal apachesolr module into the core
directories, assume that the apachesolr module is stored at the following path
~/Sites/drupalsite/sites/all/modules/contrib/apachesolr/ and that our terminal
instance is still in the multicore directory:
$ cd someproject.local
$ cp ~/Sites/someproject.local/sites/all/modules/contrib/apachesolr/solr-conf/solr-3.x/*.xml ./
$ cd ../anotherproject.local
$ cp ~/Sites/anotherproject.local/sites/all/modules/contrib/apachesolr/solr-conf/solr-3.x/*.xml ./