MNT-23451 filterQuery for facet Null (#1764)

After MNT-23276, a "Null" value was introduced but the facetQuery does not reflect how to query nodes with that facet
This commit is contained in:
Nicolas Barithel
2023-07-03 14:26:59 +02:00
committed by GitHub
parent 7bd31eca5f
commit d46ae1634f

View File

@@ -93,7 +93,7 @@ public class FacetField
public String toFilterQuery(String value)
{
return field+":\""+value+"\"";
return ("Null".equals(value)) ? "ISNULL:\"" + field + "\"" : field + ":\"" + value + "\"";
}
public String getPrefix()