stefanvodita opened a new pull request, #12550:
URL: https://github.com/apache/lucene/pull/12550

   ### Description
   
   A user could have data about facet labels. In the demo here, we record an 
author's popularity score, with authors being facet labels in an index of books.
   
   Today, users can model this by using an `AssociationFacetField` and 
assigning a value to the label, but this value is not constant across 
documents. This PR introduces `PerLabelAssociationFacetField`, which does have 
this property. Once an association for a facet label has been made, it is final.
   
   The problem that remains is that we end up storing the same value in the 
index every time a facet label is mentioned. This is why I prefer the idea of 
[storing data about facet labels in the 
taxonomy](https://github.com/apache/lucene/issues/12336). It ends up using less 
space and it makes more sense to me conceptually, but I thought I'd code both 
to better illustrate the difference.
   
   Related to #12336


-- 
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: issues-unsubscr...@lucene.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscr...@lucene.apache.org
For additional commands, e-mail: issues-h...@lucene.apache.org

Reply via email to