Hi,
Is it possible to index the super class property using hibernate search (like: Inheritance concept)when searching for a keyword.
Ex:
Event.java
Code:
@Entity
@Indexed
public class Event implements java.io.Serializable {
@Id
@DocumentId
private String eventId;
@IndexedEmbedded(depth = 3 , prefix="eventDescription_")
private EventDescription eventDescription;
}
EventDescription.java
Code:
@SuppressWarnings("serial")
@Entity
@Indexed
public class EventDescription extends EventComment
{
@Id
@DocumentId
private Event entityId;
}
EventComment.java
Code:
SuppressWarnings("serial")
public class EventComment implements java.io.Serializable
{
private String eventCommentId;
private String fieldValue;
}
I need to index the property "fieldValue" from EventComment POJO.
Is there any way to index that particular property and while searching, i should get the eventId.
Kindly help me if u hve any solutions.
Thanks,
Ambika☺