Re: [hibernate-dev] RE: Exposing legacy Lucene documents on searches.

2007-06-18 Thread Emmanuel Bernard
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

Re: [hibernate-dev] RE: Exposing legacy Lucene documents on searches.

2007-06-18 Thread Hardy Ferentschik
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

RE: [hibernate-dev] RE: Exposing legacy Lucene documents on searches.

2007-06-17 Thread John Griffin
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()

Re: [hibernate-dev] RE: Exposing legacy Lucene documents on searches.

2007-06-17 Thread Emmanuel Bernard
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