New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Odd API imperfection #308
Odd API imperfection #308
Conversation
The reason to have I think it would be a inconsistent if we were returning an plain Hibernate Session not full-text aware from an already |
Except for opening a session you do something like Search.getFullTextSession(session); I am not sure whether the consistency argument applied and I am not a fan of FullTextSharedSessionBuilder. |
Using the static helpers from Search.x is rather ugly IMHO. I expect most |
From the look of it, you are not a fan of |
correct
And that was just to make a point ;-) Overall my concern has always been, that we have to many interfaces in this setup/configuration area. I know you keep saying that everything has it purpose, but I am not convinced. For this reason changes in this area a touchy thing for me. I really think we should have a very close look at this area. |
Not merged yet? I think consistency is a very important point. We do this kind of wrapping and API enrichment by interface extensions all over, so we should do it here too - independently from the fun we can have arguing if it's the right approach generally: even if we would agree that is not the right approach, then we should start designing a completely new approach for fulltext integration. Others did that: started over with a new name and got some interested followers. People not liking this style that we propose won't be our users anyway: consistency is very important to programmers, as it shows how heated our discussions become on code style for example. So I think Hibernate Search is committed to a philosophy, it has always been. Even if I would think this API was smelly (which I do not), I think this patch should be part of it. Conceptually, it is part of Hibernate Search. It has always been, it wasn't in the code because we forgot. Our fault. don't keep me out :) |
Rebased and applied. I am still not 100% convinced, but it is in the end not a biggie either. |
thanks! |
Quite strange, org.hibernate.search.FullTextSharedSessionBuilder wasn't "wired up".
https://hibernate.onjira.com/browse/HSEARCH-1169
https://hibernate.onjira.com/browse/HSEARCH-1170