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-


Nicola


On 2020-07-29 10:27, nbuso wrote:
Hi,

I'm a bit rusty with Lucene facets API and I have a common use case
that I would like to solve.
Suppose the following facet values tree:

Facet
 - V1
   - V1.1
   - V1.2
   - V1.3
   - V1.4
   - (not topK values)
 - V2
   - V2.1
   - V2.2
   - V2.3
   - V2.4
   - (not topK values)

With (not topK values) I mean values you are not showing in the UI
because of space/visualization problems. You usually see them with the
links "More ..."

Use case:
1 - select V1 => all V1.x are selected
2 - de-select V1.1

How can I achieve this? from the search results I know the values
V1.[1-4] but I don't know the values that are not in topK. How can I
select all the V1 subtree but V1.1?

Please let me know if you need more info.


Nicola Buso - EBI

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

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

Reply via email to