This is correct, but Christian had a very interesting idea.
We could reuse the projection API to project the Lucene specific objects
fullTextQuery.setProjection("id", "title", "price",
FullTextQuery.DOCUMENT, FullTextQuery.SCORE).list();
Would return a list of
Object[] {
1, //the id
"Au b
Hi John,
By the way could you please explain your 'projection' to me. I don't
understand the concept.
The idea behind projections is to avoid full database round-trips in uses
cases where you are only interested in a subset of object properties
(instead of the full Hibernate managed objec
ECTED]
Sent: Sunday, June 17, 2007 6:56 PM
To: John Griffin
Cc: hibernate-dev@lists.jboss.org
Subject: Re: [hibernate-dev] RE: Exposing legacy Lucene documents on
searches.
hi John,
You mean having an @LegacyDocuments annotation on the application
method?
@LegacyDocuments
public void MyMethod()
hi John,
You mean having an @LegacyDocuments annotation on the application
method?
@LegacyDocuments
public void MyMethod() {
fullTextSession.scroll();
)
reading such an annotation is really expensive, the VM has to build
the stack trace. and access the caller method.
Besides, I'm more con