Hi everybody
I have the following problem. I'm doing a FullTextQuery and would like to use Projection instead of retrieving the objects from the Database.
I stored a key Value in the lucene index. - which is retrieved by my projection. - But i also need to know the "_hibernate_class" field value, but the projection does not return it (checking with luke it clearly is stored in the index)
I tried:
fullTextQuery.setProjection("keyobject",DocumentBuilder.CLASS_FIELDNAME)
and also
fullTextQuery.setProjection("keyobject", "_hibernate_class")
both leave me hanging with no value returned for [1] and the correct keyobject for [0].
Is hibernate-search hiding this field from me? - and if so, is there a way to retrieve it anyway?
Thanks for reading,
greetings
JP
|