You are viewing a plain text version of this content. The canonical link for it is here.
Posted to solr-dev@lucene.apache.org by "Koji Sekiguchi (JIRA)" <ji...@apache.org> on 2009/08/08 02:38:14 UTC

[jira] Resolved: (SOLR-1347) StatsComponent throws error for single-valued numeric fields.

     [ https://issues.apache.org/jira/browse/SOLR-1347?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Koji Sekiguchi resolved SOLR-1347.
----------------------------------

    Resolution: Invalid

> StatsComponent throws error for single-valued numeric fields.
> -------------------------------------------------------------
>
>                 Key: SOLR-1347
>                 URL: https://issues.apache.org/jira/browse/SOLR-1347
>             Project: Solr
>          Issue Type: Bug
>          Components: search
>    Affects Versions: 1.4
>         Environment: MAC OSX
>            Reporter: sumit biyani
>
> Hi ,
> Search component is throwing incorrect error while running below query on sample data.
> http://localhost:8983/solr/select?q=*:*&rows=0&indent=true&stats=on&stats.field=price
> HTTP ERROR: 400
> Stats are valid for single valued numeric values.  not: price[float{class=org.apache.solr.schema.TrieFloatField,analyzer=org.apache.solr.analysis.TokenizerChain,args={precisionStep=0, positionIncrementGap=0, omitNorms=true}}]
> Here , price is single valued float type. 
>    <field name="price"  type="float" indexed="true" stored="true"/>
> I also tried to change type to "pfloat" , but it gave error on parseDouble method.
> This is run using Solr nightly build @ 07-Aug
> Please check and  let me know if I am missing something here.
> Thanks & Regards,
> Sumit.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.