Hi Nicola,

How does the interface allow the user to select a facet values not from the
top-10? How does the interface know which other facet values are there?
Does it query the taxonomy somehow?

One thing you can do is to set numResults to Integer.MAX_VALUE and
numToLabel to 10. That way your FacetResult will have all the children up
to the specified depth, but only the top-10 will be labeled (which can
sometimes be costly). I'm not sure if that's what you're looking for?

And again, this might be something that you can do in the UI -- add the
value that the user selected to the list of values that are displayed,
irregardless of what the top-10 are?

Shai


On Tue, Jan 29, 2013 at 7:29 PM, Nicola Buso <nb...@ebi.ac.uk> wrote:

> Hi,
>
> I have a FacetRequest with numResults setted to 10, how can I specify
> additional facets value to add to the FacetResult?
>
> I try to explain the use-case:
> - the user view 10 facet result
> - the interface permit the user to choose a facet value not from the
> top-10 results
> - the user execute the query with the facet value not in the top-10
> - I'd like to show in the list of facet value also the value selected by
> the user.
>
> The only way I see I can obtain this value is execute a query where I'm
> not restricting the number of facet values returned and I "cherry pick"
> the facet with the value I need. Obviously it's costly.
>
>
>
> Nicola.
>
>
> ---------------------------------------------------------------------
> 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