lucene-solr-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Yonik Seeley (JIRA)" <j...@apache.org>
Subject [jira] Commented: (SOLR-1347) StatsComponent throws error for single-valued numeric fields.
Date Fri, 07 Aug 2009 20:09:14 GMT

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

Yonik Seeley commented on SOLR-1347:
------------------------------------

Did you delete the complete index, and then reindex after changing to "pint"?

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


Mime
View raw message