mikemccand commented on issue #14758:
URL: https://github.com/apache/lucene/issues/14758#issuecomment-4290273198

   > Actually, thinking more...I wonder if the writer could just be given an 
bitset providers or something...
   
   I didn't understand the bitset thing (vs String labels) -- are you saying 
each vector would have a bitset marking the labels (bit position) that match 
that vector, densely (but compactly)?  This is optimizing the API for the case 
where vectors generally match many labels?
   
   But then this is pushing out to the user some way/where to record the 
meaning of each bit.  Like if I have labels "fruit", "dairy", "meat", etc. for 
grocery store category for vectors, the user would (outside of Lucene) have to 
record `fruit -> bit 2`, `dairy -> bit 0`, `meat -> bit 1` ish?
   
   (Vs user passing `String[]` with the labels and vectors format would record 
that mapping under-the-hood?).


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to