-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 2 posts ] 
Author Message
 Post subject: Search and index field
PostPosted: Mon Sep 17, 2007 11:18 am 
Newbie

Joined: Tue Sep 11, 2007 9:05 am
Posts: 13
I have a question on the fields used by lucene search,

In the documentation it sais that you can only use String types for a field if you want it to be indexed. The problem is that the field i want to use is the content of a file. I used a blob and hibernates createblob in order to persist the file into the databse(MySQL, LONGTEXT) so i cant have it indexed. The question is how do i go about copying the content of the file into the database whilst being able to index that field. I also need the indexes to be automatically reindexed using the hibernate update add delete listeners.


Top
 Profile  
 
 Post subject:
PostPosted: Mon Sep 17, 2007 3:00 pm 
Hibernate Team
Hibernate Team

Joined: Sun Sep 14, 2003 3:54 am
Posts: 7256
Location: Paris, France
I answered you on your other post, the DB type and the String representation in the Lucene index are 2 different things, the second is driven by the FieldBridge.

_________________
Emmanuel


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 2 posts ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.