Hibernate lucene search collections and enums -


I'm trying to implement a search feature in my application using Hibernate Search (Lucene). Simple searches are working correctly on string fields, but now things are more complete .... I hope you can give me some hints or samples.

I have the following entities ...

  @Entity @ induced public class childclose {@Enumerated @Field (index = index.YES, analysis = analyze.YES , Store = store.YES) private enumetected eum type; .... // Hotter Setter}   

============================== ========== @Entity @ Indexed Public Class Pantaclass {@ Index Embed List & lt; ChildClass & gt; children; // greater setter ...}

=============================== =========

  public enum EnumType {a, b, c}   

========== =====================================

Now I search for example And try to find out:

"Get a list of parents who have children. Child.enumtype = a"

Can I do with the original SQL queries?

You do not have to use @indaxed embedded on this code - I think your child class is an institution, as always in child institutions, they refer to their parents , Therefore there is a bidirectional mapping in the parent category

As stated ( address is an example of the case of use)

To make sure that the Place Lucene documentation updates when the update is updated, you have to mark the bidirectional relationship with @ is required.

@ Combined In Use against the embedded objects opposing the organizations is useful only on associations.

Perhaps you can try the childcontent annotation on the child list.

In summary:

  • You should be embedded from child to parents (on original asset)
  • You can add archive parents from @containedIn (bi-directional)

Comments

Popular posts from this blog

ios - Adding an SKSpriteNode to SKScene from a child SKSpriteNode -

Matlab transpose a table vector -

c# - Textbox not clickable but editable -