-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 2 posts ] 
Author Message
 Post subject: Access the SessionFactory in Similarity or BoostStrategy
PostPosted: Mon Apr 01, 2013 6:52 am 
Newbie

Joined: Wed Mar 13, 2013 8:41 am
Posts: 2
HI all,

Given the following examples ...

Code:
@Entity
@Indexed
@Similarity(impl = DummySimilarity.class)
public class Book {
   ...
}


Code:
@DynamicBoost(impl = VIPBoostStrategy.class)
public class Person {
    private PersonType type;   
   
    // ....
}


Is there any way to access the SessionFactory/Session from an Similarity or BoosStrategy implementation classes ?

If it were possible for me would be a perfect alternative to integration with the Spring IoC container.


Regards,
Antonio


Top
 Profile  
 
 Post subject: Re: Access the SessionFactory in Similarity or BoostStrategy
PostPosted: Wed Apr 03, 2013 6:58 am 
Hibernate Team
Hibernate Team

Joined: Fri Oct 05, 2007 4:47 pm
Posts: 2536
Location: Third rock from the Sun
Hi Antonio,
do you have a practical example of what you would need to access?
Exposing the Session is tricky at that point so I'd like to explore some alternatives first.

Please open a JIRA as feature request on https://hibernate.atlassian.net/browse/HSEARCH
we can then discuss further there

_________________
Sanne
http://in.relation.to/


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 2 posts ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.