lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Diamantino Campos <>
Subject Lucene Query Time JOIN - sort by parent
Date Fri, 22 Apr 2016 10:17:30 GMT

I've been trying to use the JoinUtil.createJoinQuery method in order to get results.

I've  Parent-> Childs relation and I want to return childs result to users.

Query joinQuery = JoinUtil.createJoinQuery(idField, toField , parentQuery, searcher);
TopDocs result =, trFilter, Integer.MAX_VALUE, sort);

I'm quite stuck right now because I want to provide our users the ability to sort by any of
the columns, from parent or childs but I've noticed that the sort is only made with childs

Am I doing something wrong?

Thank you for you time.

Best regards,

Diamantino Campos

Diamantino Campos

[x]     Xpand IT | Delivering Innovation and Technology
Phone: (+351) 21 896 71 50
Fax: (+351) 21 896 71 51
[Facebook]<> [Linkedin] <>
 [Twitter] <>  [Youtube] <>

  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message