Alex Rivera | Logout

Search Engine in Java?

Asked 2011-10-28T14:20:20.093
11
  1. I am trying to create a search engine just to learn and get more experience in Java.

    My intention is to store about 100 files on a server, a mixture of html, xml, doc, txt, and for each file to have meta data.

    SO when i search for a keyword, it should display a file with its meta description like Google.

    My question is, apart from html, can you add meta data to any other file formats, so that the meta description is shown.

  2. Would you be able to point me towards a Java search engine, that can search within file formats (txt,html) and display the result.

    I am working on my own code for this, but would like to have a look at other peoples code for some help?

Edit
Report

2 Answers

27

Lucene is the canonical Java search engine.

For adding documents from a variety of sources, take a look at Apache Tika and for a full-blown system with service/web interfaces, solr.

Lucene allows arbitrary metadata to be associated with its documents. Tika will automatically cull metadata from a variety of formats.

answered 2011-10-28T14:22:15.923
4

Look at apache nutch

Apache Nutch is an open source web-search software project.

Nutch builds on top of lucene/solr for indexing, tika for parsing documents, and adds its own web crawler.

answered 2011-10-28T14:23:00.637

Your Answer