wood burning stoves 2.0*
The moose likes Other Open Source Projects and the fly likes Lucene and google-type search functionality Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Products » Other Open Source Projects
Bookmark "Lucene and google-type search functionality" Watch "Lucene and google-type search functionality" New topic

Lucene and google-type search functionality

Lorenz Baylon
Ranch Hand

Joined: Jan 04, 2006
Posts: 99
Hi Guys,

I am looking for a an open source tool for java application which can do some of google's search functionality such as fuzzy searching, ranking, etc, but will look into rdbms records (or indexed records from rdbms) and not from a text-based index. Can lucene help me with this?

Thanks in advance guys!



I just cant look, its killing me.
Ulf Dittmer

Joined: Mar 22, 2005
Posts: 41134
The index is created by code you write, so if your code looks at database records instead if text files, then that is no problem.

The index itself will always consist of text files, though (unless it is small enough that you can consider keeping it in memory), but that shouldn't be an issue.

From the Lucene FAQ:
How can I use Lucene to index a database?

Connect to the database using JDBC and use an SQL "SELECT" statement to query the database. Then create one Lucene Document object per row and add it to the index. You will probably want to store the ID column so you can later access the matching items. For other (text) columns it might make more sense to only index (not store) them, as the original data is still available in your database.

Ping & DNS - my free Android networking tools app
Lorenz Baylon
Ranch Hand

Joined: Jan 04, 2006
Posts: 99
Thanks a lot Ulf! You've been helpful and patient
I agree. Here's the link: http://aspose.com/file-tools
subject: Lucene and google-type search functionality
Similar Threads
Lucene in Action: integration with db?
Q 4 authors: what can be searched
HIbernate Query Language Syntax question
Need Suggestion for Local Search Engine
Lucene In action Full text Search on DB