Re: Hierarchical facet select a subtree but one child

2021-05-27 Thread nbuso
Hi, yes my aim was to introduce the functionality on the facet package. I created a ticket and added a simple patch; the use case seems to apply only to hierarchical facets, maybe we can add a validation to avoid to use the method in other cases. I'm happy to make modifications to the patch i

Re: Hierarchical facet select a subtree but one child

2020-08-17 Thread Michael McCandless
I think this is a missing API in DrillDownQuery? Nicola, could you open an issue? The filtering is as Mike Sokolov described, but I think we should add a sugar method, e.g. DrillDownQuery.remove or something, to add a negated query clause. And until this API is added and you can upgrade to it, y

Re: Hierarchical facet select a subtree but one child

2020-08-15 Thread Michael Sokolov
If you are trying to show documents that have facet value V1 excluding those with facet value V1.1, then you would need to issue a query like: +f:V1 -f:V1.1 assuming your facet values are indexed in a field called "f". I don't think this really has anything to do with faceting; it's just a fi

Re: Hierarchical facet select a subtree but one child

2020-08-04 Thread nbuso
Hi, is there someone that can point me in the right API to negate facet values? May be this DrillDownQuery#add(dim, query) the API to permit this use case? https://lucene.apache.org/core/8_5_2/facet/org/apache/lucene/facet/DrillDownQuery.html#add-java.lang.String-org.apache.lucene.search.Query