• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Hibernate Search - can you store info in lucene index file without persisting to the DB?

 
Bobby Anderson
Ranch Hand
Posts: 114
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I would like to index a CLOB (larger amount of text data) to be search-able using Hibernate Search.

The issue is that I do not really need that info in the DB for any reason, I just want the text indexed by lucene (within hibernate).

For example:


Where Doc is an entity that contains many TextItems. So what I want is to be able to search for some text within the lucene index but I do really need the text back I just need the Doc that the text belongs to back. Since I do not need the text back there is really no reason for me to store it in the DB as I think that the text is already stored within the lucene index. Meaning that I could save some big DB hits by not worring about saving this text data.

So can I tell hibernate to index that text without storing it in the DB?

Any ideas?
 
Dinesh Bang
Ranch Hand
Posts: 52
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Bobby ,
I am not much confident, but as much as I have used Hibernate Search it does not have feature to store only in file .
May be you need to stop the update on DB using via coding.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic