I'm writing two books. Assume one is Thanking in Java (the J book), and the other is Thanking in C# (the C book). Each book has its own index. The MWE is the following.
java.tex
\documentclass[]{article}
\usepackage{imakeidx}
\makeindex
\title{Thanking in Java}
\begin{document}
\maketitle
Java is an object-oriented language\index{object-oriented}, released in GNU General Public License\index{GNU GPL}.
... A lot of indexes
\printindex
\end{document}
cs.tex
\documentclass[]{article}
\usepackage{imakeidx}
\makeindex
\title{Thanking in C\#}
\begin{document}
\maketitle
C\# is an object-oriented language\index{object-oriented}, released in MIT License\index{MIT License}.
... A lot of indexes
\printindex
\end{document}
Is there an easy way to include index of the other book? For example in the J book, can I say that the C book also have index(es) on the entry "object-oriented", like the figure illustrated?
Similarly, in the C book, can I say the J book has indexes on "object-oriented"?
Moreover, can I show how many times the other book talks about an entry? For example in the J book,
object-oriented, 1, C3
would mean the C book has 3 occurrences of object-oriented.
Or if it's too hard, can I add page number instead?
object-oriented, 1, C1, C2, C7
would mean page 1, 2, 7 of the C book has the word object-oriented.
My goal is that my readers of one book can see the index and realize my another book also talks about the same concept (and the number of times). In this way they may be more likely to buy the other book.