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 Matthew Runo <mr...@zappos.com> on 2007/07/10 18:23:35 UTC

Facet names coming back without decimal points

Hello!

I was wondering if any of you had any ideas on why my "size" facets  
are coming back without any decimal points in their names. For  
example, my 7.5s come back as 75.

Very strange.

You can see, right below the size facet is a brand facet with a name  
of "Vans". As far as I can tell, both the brand_exact and the size  
are stored in the index the same exact way, except that the sizes are  
multivalued.

I've also attached my schema file. I'm using SOLR 1.2. You can see  
the "front end display" of this install at https:// 
prelive.canada.zappos.com/n/solr.cgi  (check it out, let me know if  
you find anything weird... heh)

+--------------------------------------------------------+
  | Matthew Runo
  | Zappos Development
  | mruno@zappos.com
  | 702-943-7833
+--------------------------------------------------------+



Re: Facet names coming back without decimal points

Posted by Daniel Alheiros <Da...@bbc.co.uk>.
Hi Matthew.

It¹s probably caused by the way you are processing this field. As you have
defined it as a ³text² that has a Whitespace tokenizer and a set of filters
related to it. You could create a new field type or just use a numeric type
(like sfloat) for that.
Anyway you can always see how your content is being processed by using Solr
analysis command available on the web console (/solr/admin/analysis.jsp).

Regards,
Daniel

On 10/7/07 17:23, "Matthew Runo" <mr...@zappos.com> wrote:

> Hello!
> 
> I was wondering if any of you had any ideas on why my "size" facets are coming
> back without any decimal points in their names. For example, my 7.5s come back
> as 75. 
> 
> Very strange. 
> 
> You can see, right below the size facet is a brand facet with a name of
> "Vans". As far as I can tell, both the brand_exact and the size are stored in
> the index the same exact way, except that the sizes are multivalued. 
> 
> I've also attached my schema file. I'm using SOLR 1.2. You can see the "front
> end display" of this install at https://prelive.canada.zappos.com/n/solr.cgi
>  (check it out, let me know if you find anything weird... heh)
> 
>  
> +--------------------------------------------------------+
>  | Matthew Runo
>  | Zappos Development
>  | mruno@zappos.com
>  | 702-943-7833                                                 
> +--------------------------------------------------------+
> 
>  
> 
> 
> 



http://www.bbc.co.uk/
This e-mail (and any attachments) is confidential and may contain personal views which are not the views of the BBC unless specifically stated.
If you have received it in error, please delete it from your system.
Do not use, copy or disclose the information in any way nor act in reliance on it and notify the sender immediately.
Please note that the BBC monitors e-mails sent or received.
Further communication will signify your consent to this.