You are viewing a plain text version of this content. The canonical link for it is here.
Posted to solr-user@lucene.apache.org by Aman Tandon <am...@gmail.com> on 2014/07/08 12:16:41 UTC

don't count facet on blank values

Hi,

Is this possible to not to count the facets for the blank values?
e.g. cat:

"cats":[*        "",34324,*
        "10",8635,
        "20",8226,
        "50",5162,
        "30",759,
        "100",188,
        "40",13,
        "200",7]

How is this possible?

With Regards
Aman Tandon

Re: don't count facet on blank values

Posted by Alexandre Rafalovitch <ar...@gmail.com>.
Do you need those values stored/indexed? If not, why not remove them
before they hit Solr with appropriate UpdateRequestProcessor?

Regards,
   Alex.
Personal website: http://www.outerthoughts.com/
Current project: http://www.solr-start.com/ - Accelerating your Solr proficiency


On Tue, Jul 8, 2014 at 5:16 PM, Aman Tandon <am...@gmail.com> wrote:
> Hi,
>
> Is this possible to not to count the facets for the blank values?
> e.g. cat:
>
> "cats":[*        "",34324,*
>         "10",8635,
>         "20",8226,
>         "50",5162,
>         "30",759,
>         "100",188,
>         "40",13,
>         "200",7]
>
> How is this possible?
>
> With Regards
> Aman Tandon

Re: don't count facet on blank values

Posted by Aman Tandon <am...@gmail.com>.
No both are same for me

With Regards
Aman Tandon


On Tue, Jul 8, 2014 at 4:01 PM, Alexandre Rafalovitch <ar...@gmail.com>
wrote:

> Right, but the blank field and missing field are different things. Are
> they for you? If yes, then correct, you are stuck with getting them
> back. But if "" blank field is the same as missing/empty field, then
> you can pre-process unify them.
>
> Regards,
>    Alex.
> Personal website: http://www.outerthoughts.com/
> Current project: http://www.solr-start.com/ - Accelerating your Solr
> proficiency
>
>
> On Tue, Jul 8, 2014 at 5:26 PM, Aman Tandon <am...@gmail.com>
> wrote:
> > @Alex, yes we need them to indexed and stored, as we are doing some
> > processing if fields are blank.
> >
> > @Gora Thanks, i will try this one.
> >
> > Thanks for your quick replies.
> >
> > With Regards
> > Aman Tandon
> >
> >
> > On Tue, Jul 8, 2014 at 3:53 PM, Gora Mohanty <go...@mimirtech.com> wrote:
> >
> >> On 8 July 2014 15:46, Aman Tandon <am...@gmail.com> wrote:
> >> > Hi,
> >> >
> >> > Is this possible to not to count the facets for the blank values?
> >> > e.g. cat:
> >> [...]
> >>
> >> Either filter them out in the query, or remove them client-side when
> >> displaying the results.
> >>
> >> Regards,
> >> Gora
> >>
>

Re: don't count facet on blank values

Posted by Alexandre Rafalovitch <ar...@gmail.com>.
Right, but the blank field and missing field are different things. Are
they for you? If yes, then correct, you are stuck with getting them
back. But if "" blank field is the same as missing/empty field, then
you can pre-process unify them.

Regards,
   Alex.
Personal website: http://www.outerthoughts.com/
Current project: http://www.solr-start.com/ - Accelerating your Solr proficiency


On Tue, Jul 8, 2014 at 5:26 PM, Aman Tandon <am...@gmail.com> wrote:
> @Alex, yes we need them to indexed and stored, as we are doing some
> processing if fields are blank.
>
> @Gora Thanks, i will try this one.
>
> Thanks for your quick replies.
>
> With Regards
> Aman Tandon
>
>
> On Tue, Jul 8, 2014 at 3:53 PM, Gora Mohanty <go...@mimirtech.com> wrote:
>
>> On 8 July 2014 15:46, Aman Tandon <am...@gmail.com> wrote:
>> > Hi,
>> >
>> > Is this possible to not to count the facets for the blank values?
>> > e.g. cat:
>> [...]
>>
>> Either filter them out in the query, or remove them client-side when
>> displaying the results.
>>
>> Regards,
>> Gora
>>

Re: don't count facet on blank values

Posted by Aman Tandon <am...@gmail.com>.
@Alex, yes we need them to indexed and stored, as we are doing some
processing if fields are blank.

@Gora Thanks, i will try this one.

Thanks for your quick replies.

With Regards
Aman Tandon


On Tue, Jul 8, 2014 at 3:53 PM, Gora Mohanty <go...@mimirtech.com> wrote:

> On 8 July 2014 15:46, Aman Tandon <am...@gmail.com> wrote:
> > Hi,
> >
> > Is this possible to not to count the facets for the blank values?
> > e.g. cat:
> [...]
>
> Either filter them out in the query, or remove them client-side when
> displaying the results.
>
> Regards,
> Gora
>

Re: don't count facet on blank values

Posted by Gora Mohanty <go...@mimirtech.com>.
On 8 July 2014 15:46, Aman Tandon <am...@gmail.com> wrote:
> Hi,
>
> Is this possible to not to count the facets for the blank values?
> e.g. cat:
[...]

Either filter them out in the query, or remove them client-side when
displaying the results.

Regards,
Gora