lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Seth Fitzsimmons" <>
Subject [ANN] Searchable 0.6.2 - Annotations for Lucene
Date Thu, 09 Mar 2006 14:50:24 GMT
Searchable is a toolkit for Lucene that harnesses the power of
annotations to specify what properties to index and how to treat them.

A sample annotated interface:

public interface Sample extends Searchable {
  public Integer getId();

  public String getName();

  public String getDescription();

// ...
BeanIndexer bi = new BeanIndexer();
// add a sample Sample instance, indexing the description and name properties
bi.add( makeSample() );

// ...
BeanSearcher s = new BeanSearcher();
// searches on all fields by default; can be overridden using @DefaultFields
ResultSet rs ="seth");
for (Result result : rs) {
  // result is actually a stripped down instance of SampleImpl.

More information (and examples) here:

Feedback / questions / comments encouraged.


To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message