It looks like your pk_p and pk_c fields aren't indexed -- they just have
doc values.

If you try making them KeywordFields instead (so they're indexed and have
doc values), does it work?

Also, the join module may be overkill for what you're trying to do, since
it looks like you're indexing parent/child blocks anyway. You could use
ToParentBlockJoinQuery instead (though you'd need to index the child docs
together with the parent doc using IndexWriter#addDocuments). Of course,
maybe your real use-case is more complicated, so the join module
makes sense.

On Wed, Jul 23, 2025 at 12:02 PM Markos Zaharioudakis
<markos...@yahoo.com.invalid> wrote:

> Hi,
>
> I am trying to create and run a "join" query using JoinUitl.createJoinQuery()
> in Lucene 10.2.0. However, the query returns 0 results. I am attaching my
> little test program. Can you please tell me what I am doing wrong?
>
> Thanks a lot,
> Markos.
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: java-user-unsubscr...@lucene.apache.org
> For additional commands, e-mail: java-user-h...@lucene.apache.org

Reply via email to