[hibernate-issues] [Hibernate-JIRA] Created: (HSEARCH-54) Provide a way to access the index reader for an entity class

Justin Pitts (JIRA) noreply at atlassian.com
Thu May 17 10:46:04 EDT 2007


Provide a way to access the index reader for an entity class
------------------------------------------------------------

                 Key: HSEARCH-54
                 URL: http://opensource.atlassian.com/projects/hibernate/browse/HSEARCH-54
             Project: Hibernate Search
          Issue Type: New Feature
          Components: engine, mapping
            Reporter: Justin Pitts


I am looking for something like this usage of IndexReaderHelper:

@Entity
@Indexed(index="indexes/Foo")
class Foo { 
  @DocumentId
  @Id
  String id;

public static List<String> getTerms(String startingWith)
{
  ArrayList<String> result = new ArrayList<String>();
  for(org.Apache.Lucene.Index.Term t in org.hibernate.search.IndexReaderHelper.getIndexReaderFor(Foo.class).getTerms(startingWith))
  {
    result.add(t.text())
  }
  return result;
}

}



-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://opensource.atlassian.com/projects/hibernate/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        



More information about the hibernate-issues mailing list