Glad it helped Sheng.
Note, the taxonomy index is not exactly like what you implement, just want
to clarify that. You implemented something like a JOIN between two indexes,
where a document index Index1 can be joined with a document (or set of
docs) in Index2, by some primary key.
The taxonomy in
Shai,
Thanks a lot for your answers! Sorry, I was distracted by some other
matters during the day and cannot try your suggestions until now. So what
you suggest on 1 is working like a charm :) for 2, it is a pity but I can
understand. By the way, the way you described that facet index gets stored
Sheng,
I assume that you're using the Lucene faceting module, so I answer
following that:
(1) A document can be associated with many facet labels, e.g. Tags/lucene
and Author/Shai. The way to extract all facet labels for a particular
document is this:
OrdinalsReader ordinals = new DocValuesOrd