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 Prasi S <pr...@gmail.com> on 2013/09/18 07:36:03 UTC

FAcet with " " values are displayes in output

Hi ,
Im using solr 4.4 for our search. When i query for a keyword, it returns
empty valued facets in the response

<lst name="facet_counts">
<lst name="facet_queries"/>
<lst name="facet_fields">
<lst name="Country">
*<int name="">1</int>*
<int name="USA">1</int>
</lst>
</lst>
<lst name="facet_dates"/>
<lst name="facet_ranges"/>
</lst>

I have also tried using facet.missing parameter., but no change. How can we
handle this.


Thanks,
Prasi

Re: FAcet with " " values are displayes in output

Posted by Upayavira <uv...@odoko.co.uk>.
q=country:[* TO *] will find all docs that have a value in a field.
However, it seems you have a space, which *is* a value. I think Eric is
right - track down that record and fix the data.

Upayavira

On Wed, Sep 18, 2013, at 09:23 AM, Prasi S wrote:
> How to filter them in the query itself?
> 
> Thanks,
> Prasi
> 
> 
> On Wed, Sep 18, 2013 at 1:06 PM, Upayavira <uv...@odoko.co.uk> wrote:
> 
> > Filter them out in your query, or in your display code.
> >
> > Upayavira
> >
> > On Wed, Sep 18, 2013, at 06:36 AM, Prasi S wrote:
> > > Hi ,
> > > Im using solr 4.4 for our search. When i query for a keyword, it returns
> > > empty valued facets in the response
> > >
> > > <lst name="facet_counts">
> > > <lst name="facet_queries"/>
> > > <lst name="facet_fields">
> > > <lst name="Country">
> > > *<int name="">1</int>*
> > > <int name="USA">1</int>
> > > </lst>
> > > </lst>
> > > <lst name="facet_dates"/>
> > > <lst name="facet_ranges"/>
> > > </lst>
> > >
> > > I have also tried using facet.missing parameter., but no change. How can
> > > we
> > > handle this.
> > >
> > >
> > > Thanks,
> > > Prasi
> >

Re: FAcet with " " values are displayes in output

Posted by Prasi S <pr...@gmail.com>.
How to filter them in the query itself?

Thanks,
Prasi


On Wed, Sep 18, 2013 at 1:06 PM, Upayavira <uv...@odoko.co.uk> wrote:

> Filter them out in your query, or in your display code.
>
> Upayavira
>
> On Wed, Sep 18, 2013, at 06:36 AM, Prasi S wrote:
> > Hi ,
> > Im using solr 4.4 for our search. When i query for a keyword, it returns
> > empty valued facets in the response
> >
> > <lst name="facet_counts">
> > <lst name="facet_queries"/>
> > <lst name="facet_fields">
> > <lst name="Country">
> > *<int name="">1</int>*
> > <int name="USA">1</int>
> > </lst>
> > </lst>
> > <lst name="facet_dates"/>
> > <lst name="facet_ranges"/>
> > </lst>
> >
> > I have also tried using facet.missing parameter., but no change. How can
> > we
> > handle this.
> >
> >
> > Thanks,
> > Prasi
>

Re: FAcet with " " values are displayes in output

Posted by Upayavira <uv...@odoko.co.uk>.
Filter them out in your query, or in your display code.

Upayavira

On Wed, Sep 18, 2013, at 06:36 AM, Prasi S wrote:
> Hi ,
> Im using solr 4.4 for our search. When i query for a keyword, it returns
> empty valued facets in the response
> 
> <lst name="facet_counts">
> <lst name="facet_queries"/>
> <lst name="facet_fields">
> <lst name="Country">
> *<int name="">1</int>*
> <int name="USA">1</int>
> </lst>
> </lst>
> <lst name="facet_dates"/>
> <lst name="facet_ranges"/>
> </lst>
> 
> I have also tried using facet.missing parameter., but no change. How can
> we
> handle this.
> 
> 
> Thanks,
> Prasi

Re: FAcet with " " values are displayes in output

Posted by Erik Hatcher <er...@gmail.com>.
This is likely because you added an empty value to the Country field for one (in that result set) document.  I imagine this is a data issue and that you either need to clean up the data or avoid indexing blank values.

	Erik

On Sep 18, 2013, at 1:36 AM, Prasi S <pr...@gmail.com> wrote:

> Hi ,
> Im using solr 4.4 for our search. When i query for a keyword, it returns
> empty valued facets in the response
> 
> <lst name="facet_counts">
> <lst name="facet_queries"/>
> <lst name="facet_fields">
> <lst name="Country">
> *<int name="">1</int>*
> <int name="USA">1</int>
> </lst>
> </lst>
> <lst name="facet_dates"/>
> <lst name="facet_ranges"/>
> </lst>
> 
> I have also tried using facet.missing parameter., but no change. How can we
> handle this.
> 
> 
> Thanks,
> Prasi


Re: FAcet with " " values are displayes in output

Posted by Prasi S <pr...@gmail.com>.
No analysis is done on the facets. The facets are string fields.


On Wed, Sep 18, 2013 at 11:59 PM, tamanjit.bindra@yahoo.co.in <
tamanjit.bindra@yahoo.co.in> wrote:

> Any analysis happening on the country field during indexing? If so then
> facets are on tokens.
>
>
>
> --
> View this message in context:
> http://lucene.472066.n3.nabble.com/FAcet-with-values-are-displayes-in-output-tp4090777p4090904.html
> Sent from the Solr - User mailing list archive at Nabble.com.
>

Re: FAcet with " " values are displayes in output

Posted by "tamanjit.bindra@yahoo.co.in" <ta...@yahoo.co.in>.
Any analysis happening on the country field during indexing? If so then
facets are on tokens.



--
View this message in context: http://lucene.472066.n3.nabble.com/FAcet-with-values-are-displayes-in-output-tp4090777p4090904.html
Sent from the Solr - User mailing list archive at Nabble.com.