[hibernate-dev] HSEARCH-1917, faceting, indexNullAs, FieldBridges
guillaume.smet at gmail.com
Tue Feb 23 14:26:37 EST 2016
On Tue, Feb 23, 2016 at 7:21 PM, Sanne Grinovero <sanne at hibernate.org>
> I don't have a strong opinion on the usefulness on faceting on null;
> would someone have a sensible example of faceting on a "null value" ?
> We can fix it but I have the impression it's just about fixing a
> developer's itch because of it being inconsistent with other
> components; if it helps with Elasticsearch integration then that makes
> more sense to me.
It's not faceting on a null value, it's the ability to support null values
in faceted fields when indexing the entity. Currently, it throws a NPE on
indexing. For instance, you might have entities which doesn't have a value
for a given faceted field.
Does it make more sense?
> But why would you fix it by "if (value == null) return;" ? Do you
> think you can make it work with that? I'd rather actually index the
> marker token defined by 'indexNullAs'.
Do you think we would want facet results for the indexNullAs value?
> +1 to collect notes on FieldBridge and Document change wishes.
OK, will do.
More information about the hibernate-dev