[
http://opensource.atlassian.com/projects/hibernate/browse/HSEARCH-54?page...
]
Emmanuel Bernard commented on HSEARCH-54:
-----------------------------------------
DirectoryProviderFacctory is a private API, don't use it
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....
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira