We're updating the issue view to help you get more done. 

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

Description

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;
}

}

Environment

None

Status

Assignee

Unassigned

Reporter

Justin Pitts

Labels

None

Suitable for new contributors

None

Pull Request

None

Feedback Requested

None

Components

Priority

Major