Limit = 0? Does it still calculate facet ?

classic Classic list List threaded Threaded
5 messages Options
Reply | Threaded
Open this post in threaded view
|

Limit = 0? Does it still calculate facet ?

Billnbell
We have a qt=provider and it sets facets.

We want to short circuit the facet. Can we set limit=0 and will it NOT
calculate it?

Or does it calculate it and not return results? Can we make it faster ?

f.<fieldname>.facet.limit = 0

--
Bill Bell
[hidden email]
cell 720-256-8076
Reply | Threaded
Open this post in threaded view
|

Re: Limit = 0? Does it still calculate facet ?

Tomás Fernández Löbbe
Yes, facet.limit will short circuit and not calculate the facet for the
field. I'm assuming you can't just use facet=false?

Tomas

On Thu, Dec 22, 2016 at 1:00 PM, William Bell <[hidden email]> wrote:

> We have a qt=provider and it sets facets.
>
> We want to short circuit the facet. Can we set limit=0 and will it NOT
> calculate it?
>
> Or does it calculate it and not return results? Can we make it faster ?
>
> f.<fieldname>.facet.limit = 0
>
> --
> Bill Bell
> [hidden email]
> cell 720-256-8076
>
Reply | Threaded
Open this post in threaded view
|

Re: Limit = 0? Does it still calculate facet ?

Mikhail Khludnev-2
> facet.limit will short circuit and not calculate the facet for the field.
But not for SolrCloud, I believe.

On Fri, Dec 23, 2016 at 2:15 AM, Tomás Fernández Löbbe <
[hidden email]> wrote:

> Yes, facet.limit will short circuit and not calculate the facet for the
> field. I'm assuming you can't just use facet=false?
>
> Tomas
>
> On Thu, Dec 22, 2016 at 1:00 PM, William Bell <[hidden email]> wrote:
>
> > We have a qt=provider and it sets facets.
> >
> > We want to short circuit the facet. Can we set limit=0 and will it NOT
> > calculate it?
> >
> > Or does it calculate it and not return results? Can we make it faster ?
> >
> > f.<fieldname>.facet.limit = 0
> >
> > --
> > Bill Bell
> > [hidden email]
> > cell 720-256-8076
> >
>



--
Sincerely yours
Mikhail Khludnev
Reply | Threaded
Open this post in threaded view
|

Re: Limit = 0? Does it still calculate facet ?

Billnbell
In reply to this post by Tomás Fernández Löbbe
Yeah we have a bunch of facet.fields that we need, but want to selectively
turn a few off based on user input.

QT - has default facet.fields.

We want to turn a couple off like this:

http://localhost:8983/solr/core/select?qt=provider&f.payor.facet.limit=0

Will this turn off the payor field that is defined in QT?

Any other way to do it?

On Thu, Dec 22, 2016 at 4:15 PM, Tomás Fernández Löbbe <
[hidden email]> wrote:

> Yes, facet.limit will short circuit and not calculate the facet for the
> field. I'm assuming you can't just use facet=false?
>
> Tomas
>
> On Thu, Dec 22, 2016 at 1:00 PM, William Bell <[hidden email]> wrote:
>
> > We have a qt=provider and it sets facets.
> >
> > We want to short circuit the facet. Can we set limit=0 and will it NOT
> > calculate it?
> >
> > Or does it calculate it and not return results? Can we make it faster ?
> >
> > f.<fieldname>.facet.limit = 0
> >
> > --
> > Bill Bell
> > [hidden email]
> > cell 720-256-8076
> >
>



--
Bill Bell
[hidden email]
cell 720-256-8076
Reply | Threaded
Open this post in threaded view
|

Re: Limit = 0? Does it still calculate facet ?

Shawn Heisey-2
On 12/22/2016 9:53 PM, William Bell wrote:
> Yeah we have a bunch of facet.fields that we need, but want to
> selectively turn a few off based on user input.
<snip>
> Any other way to do it?

Use the user input to *include* facet fields instead of trying to
*exclude* them.  You're already talking about custom code on the query
side to do this ... just change your plan a little bit.

Thanks,
Shawn