-->
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: Hibernate Search, index a List<String>
PostPosted: Mon Aug 19, 2013 6:55 pm 
Newbie

Joined: Thu Jun 25, 2009 1:03 pm
Posts: 2
Hi all,

I am starting with Hibernate Search and I got stuck at indexing a class having an attribute defined as follows:

private List<String> stringList;

Is there any built in bridge for a basic element collection?
Do I need to create a custom Bridge for this purpose?

Also, if that was a List<Integer>, is there any custom padding bridge for this collection type?

Thanks in advance!


Top
 Profile  
 
 Post subject: Re: Hibernate Search, index a List<String>
PostPosted: Mon Sep 02, 2013 10:55 am 
Hibernate Team
Hibernate Team

Joined: Fri Oct 05, 2007 4:47 pm
Posts: 2536
Location: Third rock from the Sun
Hi,
sorry for the delay, most of us where away.

I had to look at the sources for this one.

There is no built-in bridge for such a case, but there are examples in the testsuite:
org.hibernate.search.test.embedded.fieldoncollection.IndexedEntity
org.hibernate.search.test.embedded.fieldoncollection.CollectionOfStringsFieldBridge

I've opened an issue to track this:
https://hibernate.atlassian.net/browse/HSEARCH-1398

_________________
Sanne
http://in.relation.to/


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.