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

Emmanuel Bernard (JIRA) noreply at atlassian.com
Thu May 17 21:16:04 EDT 2007


    [ http://opensource.atlassian.com/projects/hibernate/browse/HSEARCH-54?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_26977 ] 

Emmanuel Bernard commented on HSEARCH-54:
-----------------------------------------

Isn't this problem solved by HSEARCH-1 already?

> 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