13 Replies Latest reply on Feb 18, 2016 5:56 AM by gustavonalle

    Query Nested Fields in Hibernate Search/Infinispan

    dansiviter

      I'm trying to sort by a field within a nested class using Infinispan via Hibernate Search (e.g. myClass.myNested.name) I can query the field fine (which is mapped by a dual @Field declaration, a @SortableField and the owning class declares the member field with @IndexedEmbedded. It appears I'm supposed to use ToParentBlockJoinSortField (and also QueryBitSetProducer) to achieve this, however there seems to be no examples as the plumbing is pretty complicated. Can anyone assist with this?

       

      Apologies, I'm not permitted to upload code examples.

       

      Thanks in advance.