Automatically Start Apache Solr

What about when you reboot your Apache Solr server? Are you going to type in the command line after each reboot? There's an easier way. You can create a startup script to automatically start Apache Solr when you reboot your server.

Choose one of the below options.

No Underscores in Content Type Names

As of the 6.x.1.2 version of Node Relativity you cannot have underscores in the "machine readable" content type names that you want to use with this module.

For example, if you have a content type called "my_child" that is the child of a content type called "parent", you will have to rename "my_child" to something without an underscore, such as "mychild".

Installation

Classified Ads Module Installation

This page describes how to install the Classified Ads module.

Steps

  1. Copy this directory to a suitable modules directory, such as sites/all/modules
  2. Enable the module at: Administer > Site building > Modules. This will create the necessary tables and taxonomy
  3. Configure the module settings at: Administer > Site configuration > Classified Ads. You should decide on an expiration and purge policy, as well as a max body length (in characters).

Making Apache Solr the only search engine available

This documentation is obsolete!
Much of the functionality of Suppress Search module has been integrated into Apache Solr Search Integration module since version 6.x-1.0-rc1 of 2009-Jul-02. Read more at http://drupal.org/node/504808#comment-1766820
To find the Apache Solr Search Integration setting go to admin/settings/apachesolr
Then expand the Advanced configuration section. href="http://drupal.org/files/issues/Make_Apache_Solr_Search_the_default.png">View this screenshot to clarify.

----------------------------------------------------------

This how-to handbook is for absolute beginners.

We are now going to disable the default Drupal search engine. Then make Apache Solr the only search engine available. This is a big performance improvement for large Drupal site.

Step 9 of 10 Enabling Drupal blocks

We're now going to enable the Drupal blocks for facets.

Using Drupal navigate to ADMINISTER > SITE CONFIGURATION > APACHE SOLR
Click on ENABLED FILTERS tab.
Under the section APACHE SOLR SEARCH check the box beside the search you want to use.
Click on SAVE button.
Still using Drupal navigate to ADMINISTER > SITE BUILDING > BLOCKS
Arrange the APACHES SOLR blocks appropriately. To do so drag and drop the APACHE SOLR blocks from the section DISABLE to ANOTHER section. In my case the RIGHT SIDEBAR section.
Click on SAVE BLOCKS button.

That's it you're done. We're now going to try Apache Solr search feature.
Note: When used in combination with Drupal core search module, Apache Solr is not the default
search. So you must access it via a new tab on the default search page, called "Search". We are going to do that now.

Using your internet browser go to your website, for example http://example.com
Type in something in the field SEARCH THIS SITE. Try to type something you know is part of a page.
On the left side of the page click on the grey SEARCH button.
On the top of the page click on the blue SEARCH tab button.
If successful you'll see your Apache Solr search blocks on the right side column.
Test by clicking on a few links inside the Apache Solr blocks.

Step 8 of 10 Indexing Drupal site

We are now going to index our Drupal site by running CRON.

Still using your internet browser go to http://10.1.2.3/cron.php
Note: You must replace above 10.1.2.3 by your first remote Ubuntu Server IP address.

If successful the next page will be empty. A white page. This is normal. It means CRON is in progress.

To get a status report on the indexing progress go to http://10.1.2.3?q=admin/settings/apachesolr/index
Reload this page to see the progress.
Wait.

In my case the first paragraph of this page reads.

The search index is generated by running cron. 12% of the site content has been sent to the server. There are 350 items left to send.

The server has a 4 min delay before updates are processed.

Click on 'running cron' link until 100% of the site content has been sent to the Solr server.
Tips: Clicking the 'running cron' link does the same thing as going to http://10.1.2.3/cron.php

Note: The solrconfig.xml that comes with this modules defines auto-commit, so it may take a few minutes between running cron and when the new content is visible in search.

Using Drupal navigate to ADMINISTER > USER MANAGEMENT > PERMISSIONS
Under SEARCH MODULES section check the boxes beside SEARCH CONTENT & USE ADVANCED SEARCH giving access to both ANONYMOUS USER & AUTHENTICATED USER.

Click on SAVE PERMISSIONS button.

Pages

Subscribe with RSS Subscribe to RSS - Site administrators