I solved the problem. The correct syntax is: http://localhost:8983/solr/articles.0/select/?q={!func}query({!query v='hello'})&fl=Document.title,score,&debugQuery=on
Rodrigo On Thu, Jul 15, 2010 at 12:32 PM, Rodrigo Rezende <rcreze...@gmail.com> wrote: > Hello, > > I am trying to use function nested query syntax with solr 1.4.1, but I > am not sure if I am doing in right way: > > I try this query and I get all documents which score is 12 > > http://localhost:8983/solr/articles.0/select/?q={!func}product(3,4)&fl=Document.title,score,&debugQuery=on > > Using the same syntax, for nested query, I get an error > > http://localhost:8983/solr/articles.0/select/?q={!func}query(hello)&fl=Document.title,score,&debugQuery=on > > org.apache.lucene.queryParser.ParseException: Nested function query > must use $param or {!v=value} forms. got 'query(hello)' > > Thanks, > > Rodrigo. >