You are viewing a plain text version of this content. The canonical link for it is here.
Posted to solr-user@lucene.apache.org by Robert Thayer <Ro...@Bankserv.com> on 2010/09/29 00:08:19 UTC

Queries, Functions, and Params

On the http://wiki.apache.org/solr/FunctionQuery page, the following query function is listed:
 
q={!func}add($v1,$v2)&v1=sqrt(popularity)&v2=100.0 
 
When run against the default solr instance, server returns the error(400): "undefined field $v1".
 
Any way to remedy this?
 
Using version: 3.1-2010-09-28_05-53-44
 
Thanks!
 
Bob Thayer
Bankserv Inc.
robert.thayer@bankserv.com

RE: Queries, Functions, and Params

Posted by Robert Thayer <Ro...@Bankserv.com>.
Yes, just after sending the email I reread the wiki and noticed the 4.0 requirement.  I will try that, thanks.

________________________________

From: yseeley@gmail.com on behalf of Yonik Seeley
Sent: Wed 9/29/2010 8:12 AM
To: solr-user@lucene.apache.org
Subject: Re: Queries, Functions, and Params



On Tue, Sep 28, 2010 at 6:08 PM, Robert Thayer
<Ro...@bankserv.com> wrote:
> On the http://wiki.apache.org/solr/FunctionQuery page, the following query function is listed:
>
> q={!func}add($v1,$v2)&v1=sqrt(popularity)&v2=100.0
>
> When run against the default solr instance, server returns the error(400): "undefined field $v1".
>
> Any way to remedy this?
>
> Using version: 3.1-2010-09-28_05-53-44


The wiki page indicates this is a 4.0 feature - so you need a recent
4.0-dev build to try it out.

-Yonik
http://lucenerevolution.org <http://lucenerevolution.org/>   Lucene/Solr Conference, Boston Oct 7-8



Re: Queries, Functions, and Params

Posted by Yonik Seeley <yo...@lucidimagination.com>.
On Tue, Sep 28, 2010 at 6:08 PM, Robert Thayer
<Ro...@bankserv.com> wrote:
> On the http://wiki.apache.org/solr/FunctionQuery page, the following query function is listed:
>
> q={!func}add($v1,$v2)&v1=sqrt(popularity)&v2=100.0
>
> When run against the default solr instance, server returns the error(400): "undefined field $v1".
>
> Any way to remedy this?
>
> Using version: 3.1-2010-09-28_05-53-44


The wiki page indicates this is a 4.0 feature - so you need a recent
4.0-dev build to try it out.

-Yonik
http://lucenerevolution.org  Lucene/Solr Conference, Boston Oct 7-8