-->
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.  [ 1 post ] 
Author Message
 Post subject: HS 5.3.0.Final @Facet for @IndexedEmbedded field
PostPosted: Fri Jun 12, 2015 9:57 am 
Newbie

Joined: Wed Dec 17, 2014 5:11 am
Posts: 2
I'm trying out the new faceting using Hibernate Search 5.3. It seems to me that @Facet can only be used to match a valid @Field in the same object.

I have a case where an object need to be faceted using a field in an IndexedEmbedded field, but it seems that is not possible. I've tried applying the facet on the embedded entity, but it is ignored.

e.g 1
@Indexed
class A{
@Field
field c;
...
other fields
}

@Indexed
class B{
@IndexedEmbedded
@Facet(forField="a.c")
A c;
....
other fields
}

E.g 2

@Indexed
class A{
@Field
@Facet
field c;
...
other fields
}

@Indexed
class B{
@IndexedEmbedded
A a;
....
other fields
}

In either case, I'm unable to facet B on field c of A. I get an error like the following:
org.hibernate.search.exception.SearchException: HSEARCH000268: Facet request 'INDIVIDUAL_ZONES' tries to facet on field 'a.c' which either does not exists or is not configured for faceting (via @Facet). Check your configuration

Please, is there any way this can be achieved?

Thanks!


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

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.