[ 
https://issues.apache.org/jira/browse/SOLR-1347?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12740785#action_12740785
 ] 

sumit biyani commented on SOLR-1347:
------------------------------------

changed schema.xml , deleted data and reindexed.
it worked fine , thanks.


> 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.

Reply via email to