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 "sumit biyani (JIRA)" <ji...@apache.org> on 2009/08/07 22:03:14 UTC

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

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.


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

Posted by "Yonik Seeley (JIRA)" <ji...@apache.org>.
    [ 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.


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

Posted by "Koji Sekiguchi (JIRA)" <ji...@apache.org>.
     [ 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.


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

Posted by "sumit biyani (JIRA)" <ji...@apache.org>.
    [ 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.