[hibernate-issues] [Hibernate-JIRA] Commented: (HSEARCH-54) Provide a way to access the index reader for an entity class
Justin Pitts (JIRA)
noreply at atlassian.com
Fri May 18 09:17:04 EDT 2007
[ http://opensource.atlassian.com/projects/hibernate/browse/HSEARCH-54?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_26994 ]
Justin Pitts commented on HSEARCH-54:
-------------------------------------
Yes. Is DirectoryProviderFactory preferred over SearchFactory.getDirectoryProvider() then?
> 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