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 Adam Estrada <es...@gmail.com> on 2011/06/15 17:52:13 UTC

[Handling] empty fields

All,

I have a field "foo" with several thousand blank or non-existing records in
it. This is also my faceting field. My question is, how can I deal with this
field so that I don't get a blank facet at query time?

<int name="">5000</int>
vs.
<int name="Flickr">1000</int>

Adam

Re: [Handling] empty fields

Posted by Rob Casson <ro...@gmail.com>.
i also thought of the lengthFilter stuff, provided it's a
text/KeywordTokenizer field:

     http://wiki.apache.org/solr/AnalyzersTokenizersTokenFilters#solr.LengthFilterFactory

cheers,
rob

On Wed, Jun 15, 2011 at 12:00 PM, Erick Erickson
<er...@gmail.com> wrote:
> Have you tried setting 'facet.missing="false" '?
>
> See:
> http://wiki.apache.org/solr/SimpleFacetParameters#facet.missing
>
> Best
> Erick
>
> On Wed, Jun 15, 2011 at 11:52 AM, Adam Estrada
> <es...@gmail.com> wrote:
>> All,
>>
>> I have a field "foo" with several thousand blank or non-existing records in
>> it. This is also my faceting field. My question is, how can I deal with this
>> field so that I don't get a blank facet at query time?
>>
>> <int name="">5000</int>
>> vs.
>> <int name="Flickr">1000</int>
>>
>> Adam
>>
>

Re: [Handling] empty fields

Posted by Erick Erickson <er...@gmail.com>.
Have you tried setting 'facet.missing="false" '?

See:
http://wiki.apache.org/solr/SimpleFacetParameters#facet.missing

Best
Erick

On Wed, Jun 15, 2011 at 11:52 AM, Adam Estrada
<es...@gmail.com> wrote:
> All,
>
> I have a field "foo" with several thousand blank or non-existing records in
> it. This is also my faceting field. My question is, how can I deal with this
> field so that I don't get a blank facet at query time?
>
> <int name="">5000</int>
> vs.
> <int name="Flickr">1000</int>
>
> Adam
>