You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by "Hoss Man (JIRA)" <ji...@apache.org> on 2011/01/07 23:51:45 UTC

[jira] Updated: (SOLR-1914) phps and json outputs illegal numeric values for NaN and +/- Infinity

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

Hoss Man updated SOLR-1914:
---------------------------

    Summary: phps and json outputs illegal numeric values for NaN and +/- Infinity  (was: phps and json add a double qoute / brackets, serialize isnt working)

Updating summary to clarify root of problem (and fix already committed)

> phps and json outputs illegal numeric values for NaN and +/- Infinity
> ---------------------------------------------------------------------
>
>                 Key: SOLR-1914
>                 URL: https://issues.apache.org/jira/browse/SOLR-1914
>             Project: Solr
>          Issue Type: Bug
>          Components: clients - php
>    Affects Versions: 1.4
>         Environment: apache Solr 1.4, Jetty (out of the box).  e-comerce application UTF-8
>            Reporter: Sascha Jovanoski
>             Fix For: 3.1, 4.0
>
>         Attachments: ff01.xml, SOLR-1949.patch
>
>
> (first of all Solr Rocks!)
> iam runnig an e-comerce application with dynamic filteset, depend on selected categories.
> everything works fine and stable but today i found out that ther is a strange case:
> i guess around 5000 strings in my app used as facet filter. There is one String "transluzentes Acryl" and even the english  translation "Translucent acrylics" are not working.
> QUERY:
> http://ff01:8983/solr/core1/select/?q=*:*&fq=shop_id:10 AND language:2 AND category_1:"Badewannen" AND material:"transluzentes Acryl"&facet=on&facet.limit=400&facet.field=category_1&facet.field=category_2&facet.field=manu&facet.field=length&facet.field=width&facet.field=height&facet.field=color&facet.field=material&facet.field=delivery&facet.field=attributes&facet.mincount=1&facet.sort=lex&facet.method=fc&stats=true&stats.field=price&start=0&rows=50&sort=sort+desc&fl=name,model_nr,image,url,manu,delivery,in_stock,serie,price,uvp,nav_id,template,option,name,model_nr,image,url,manu,delivery,in_stock,serie,price,uvp,nav_id,template,option&wt=phps&V=1.0&version=2.2
> RESPONSE: as xml and php works fine! but json , phps ends up like this.
> .....s:2:"fq";s:79:"shop_id:10 AND language:2 AND category_1:"Badewannen" AND material:"transluzentes Acryl"";......
> see that double qoutes at the end.
> That happens only on this strings or Docs because even the english Docs fails. I though its may be a matter of encoding, so i added a transformer in the DIH which  replaced these strings with "Hello World".
> Faces on "Hello Wolrd" fails. Other Facet Strings with white spaces, special chars and so on never fail. 
> if i add brackets on the fq 
> ...q=*:*&fq=shop_id:10 AND language:2 AND category_1:"Badewannen" AND material:"transluzentes Acryl"&facet=on&...
> it ends up with a double }}
> s:2:"fq";s:79:"shop_id:20 AND language:2 AND category_1:"Badewannen" AND material:"Hallo Welt"";}}

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


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org