Thanks, but why isn't the document list passed to ResultTransformer?
Like List transformList(List collection, List Document ). I know this is from the org.hibernate.transform but it would be nice to populate my entities by myself.
Code:
public interface LuceneResultTransformer extends ResultTransformer{
public List transformList(List collection, List Document );
}
There must be many scenarios where I don't want to save 100.000 pdf dokument with 300 pages each in the database and only in the lucene index. However, I might want to make a presentation with the first 10 lines ( like Google ) in the document when a search is made.
What is the "Hibernate Search" way of dealing with this ( if there is any )? Would you save all the content in a file in the database to make it lucene searchable and to be able to make a presentation with it in a web application?
// Mathias