Re: Unexpected value for boolean field in FunctionQuery

2013-09-10 Thread Chris Hostetter
: When I use your url example : http://localhost:8983/solr/select?q=*:*&rows=100&fl=id,inStock,if%28inStock,10,0%29&debugQuery=true : I have : : 10 : (and my document does not have the inStock field) Elodie, this is definitely a tricy one... I can reproduce the problme you are describing, on 4.

Re: Unexpected value for boolean field in FunctionQuery

2013-09-10 Thread Elodie Sannier
By the way Yonik which version do you use (4.4.0 or nightly) ? Elodie On 09/10/2013 04:06 PM, Elodie Sannier wrote: I didn't forget to commit my changes. I used commands: java -Durl=http://localhost:8983/solr/collection1/update -jar post.jar ipod_video.xml curl 'http://localhost:8983/solr/colle

Re: Unexpected value for boolean field in FunctionQuery

2013-09-10 Thread Elodie Sannier
I didn't forget to commit my changes. I used commands: java -Durl=http://localhost:8983/solr/collection1/update -jar post.jar ipod_video.xml curl 'http://localhost:8983/solr/collection1/update/?commit=true' When I use your url example http://localhost:8983/solr/select?q=*:*&rows=100&fl=id,inStock

Re: Unexpected value for boolean field in FunctionQuery

2013-09-10 Thread Yonik Seeley
I just tried a simple test with the example data, and things seem to be working fine... I tried this: http://localhost:8983/solr/select ?q=*:* &rows=100 &fl=id, inStock, if(inStock,10,0) I saw values of 10 when inStock==true and values of 0 when it was missing or explicitly false. Perhaps y

Unexpected value for boolean field in FunctionQuery

2013-09-10 Thread Elodie Sannier
Hello, I am using the solr version 4.4.0, when I'm using FunctionQuery with boolean fields, it seems that the default field value is "true" for documents without a value in the field. The page http://wiki.apache.org/solr/FunctionQuery#field says "0 is returned for documents without a value i