]
Emmanuel Bernard resolved HSEARCH-54.
-------------------------------------
Resolution: Won't Fix
As per user agreement
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: