Skip to main content

By clicking Submit, you agree to the developerWorks terms of use.

The first time you sign into developerWorks, a profile is created for you. Select information in your developerWorks profile is displayed to the public, but you may edit the information at any time. Your first name, last name (unless you choose to hide them), and display name will accompany the content that you post.

All information submitted is secure.

  • Close [x]

The first time you sign in to developerWorks, a profile is created for you, so you need to choose a display name. Your display name accompanies the content you post on developerworks.

Please choose a display name between 3-31 characters. Your display name must be unique in the developerWorks community and should not be your email address for privacy reasons.

By clicking Submit, you agree to the developerWorks terms of use.

All information submitted is secure.

  • Close [x]

Apache Lucene quick-start guide

Learn the ropes of Apache Solr V1.2, an Apache Lucene subproject

Tyler Anderson (tyleranderson5@yahoo.com), Freelance writer, Backstop Media
Tyler Anderson graduated with a degree in Computer Science from Brigham Young University in 2004 and is currently in his last semester as a Master of Science student in Computer Engineering. In the past, he worked as a database programmer for DPMG.COM, and he is currently an engineer for Stexar Corp., based in Beaverton, Oregon.

Summary:  Apache Lucene is a robust open source search solution for myriad applications, including your own favorite Web sites or your company's intranet. Apache Lucene will go out and grab and index pages you specify, allowing you to search them at will. It also comprises several add-on applications, or subprojects, including the Apache Solr Enterprise search server. In this tutorial, you'll learn how to use Apache Solr and integrate it with a Web application.

Date:  30 Oct 2007
Level:  Intermediate PDF:  A4 and Letter (643 KB | 33 pages)Get Adobe® Reader®

Activity:  35014 views
Comments:  

Before you start

This tutorial is for developers and IT professionals that would like to use the Apache Solr enterprise search server as an enterprise-class search engine for the company intranet or other demanding search engine applications. It is also for those interested in implementing Apache Solr APIs to integrate new or existing applications with Apache Solr's searchable index.

About this tutorial

This tutorial shows the advantages and simplicity of using Apache Solr as an enterprise search engine. Note that since Apache Solr is based on Apache Lucene, some of the concepts you'll learn will be useful for Apache Lucene, as well.

You'll learn how to do the following:

  • Install Apache Solr
  • Use Solr's command-line features
  • Use Solr's admin interface
  • Use Solr's HTTP XML interface
  • Integrate a Web application with Apache Solr's HTTP XML interface

System requirements

Besides Apache Solr, this tutorial requires other technologies. For instance, Apache Solr requires a Web container like Apache Tomcat. Following is the full list.

Apache Solr
When it comes to open source enterprise-class search engines, you'll need Lucene, which Apache Solr is based off of. Apache Solr has extra bells and whistles to make your enterprise search engine work harder for you. The latest version was 1.2 at the time of this writing.
Apache Tomcat V5.5
This tutorial will use Apache Tomcat as the servlet container. However, there are other possibilities, such as Jetty.
Apache V2
This tutorial uses Apache V2 as the hosting server of the Web application you'll integrate with the Solr APIs.
PHP V5
You'll build a PHP Web application that you'll integrate with the Solr APIs.
Web browser
Mozilla Firefox is recommended.

You'll learn more about installing Apache Solr before you begin using it later in the tutorial. To learn more about installing and configuring Apache V2 and PHP, see Resources.

You do not need to be an expert in Apache or Java™ technology to complete this tutorial successfully. This tutorial explains how to create a high-performance search engine using Apache Lucene, Solr, and related projects in a step-by-step manner. It does not explain the nuances of the Lucene API. developerWorks has published Apache Lucene articles that provide extensive discussions. We recommend starting with these articles if this tutorial skirts an issue of interest to you.

1 of 10 | Next

Comments



Help: Update or add to My dW interests

What's this?

This little timesaver lets you update your My developerWorks profile with just one click! The general subject of this content (AIX and UNIX, Information Management, Lotus, Rational, Tivoli, WebSphere, Java, Linux, Open source, SOA and Web services, Web development, or XML) will be added to the interests section of your profile, if it's not there already. You only need to be logged in to My developerWorks.

And what's the point of adding your interests to your profile? That's how you find other users with the same interests as yours, and see what they're reading and contributing to the community. Your interests also help us recommend relevant developerWorks content to you.

View your My developerWorks profile

Return from help

Help: Remove from My dW interests

What's this?

Removing this interest does not alter your profile, but rather removes this piece of content from a list of all content for which you've indicated interest. In a future enhancement to My developerWorks, you'll be able to see a record of that content.

View your My developerWorks profile

Return from help

static.content.url=http://www.ibm.com/developerworks/js/artrating/
SITE_ID=1
Zone=Open source
ArticleID=264711
TutorialTitle=Apache Lucene quick-start guide
publish-date=10302007
author1-email=tyleranderson5@yahoo.com
author1-email-cc=dwxed@us.ibm.com

Tags

Help
Use the search field to find all types of content in My developerWorks with that tag.

Use the slider bar to see more or fewer tags.

Popular tags shows the top tags for this particular content zone (for example, Java technology, Linux, WebSphere).

My tags shows your tags for this particular content zone (for example, Java technology, Linux, WebSphere).

Use the search field to find all types of content in My developerWorks with that tag. Popular tags shows the top tags for this particular content zone (for example, Java technology, Linux, WebSphere). My tags shows your tags for this particular content zone (for example, Java technology, Linux, WebSphere).

Try IBM PureSystems. No charge.