Re: Adding field to query result

2015-07-08 Thread Erick Erickson
Yes, product is a function query and yes you can write your own. Score is a _really_ special field, accessed with even referenced differently by just the plain score "field". You can also use "doc transformers" to return things like which shard the doc came from, but that's a different syntax just

Re: Adding field to query result

2015-07-08 Thread Maya G
Hey, Thanks for your response. Yes, I think what I'm looking for is a pseudo field. Is the "product" function a funtion query? I assume I can replace the the "product" function in an implementation of my own. BTW - is the score field a pseudo field? Maya -- View this message in context: htt

Re: Adding field to query result

2015-07-08 Thread Erik Hatcher
Maya - where’s the variable come from? You can compute a “pseudo-field”, something like this: $ bin/solr create -c test $ bin/post -c test -type text/csv -out yes -d $'id,type,price_td\n1,Toys,55.00’ $ open http://localhost:8983/solr/test/select?q=*:*&wt=xml&fl=id,type,price_td,sale_price:pro