: 'query' is a function returning a number.
: You can't use it as a query.

Well ... you can, you just have to use the correct query parser.

since there is nothing to make it clear to solr that you want it to parse 
the "q" paramater as a function, it's using hte default parser, and 
probably seraching for the literal string "query($qq,1)"

but to get the exact behavior you seem to be describing...

: > but I was expecting the query to match all documents and obtain score=1 
where
: > hard drive
: > didn't match

...just use:  q={!func}query($qq,1)

https://cwiki.apache.org/confluence/display/solr/Function+Queries#FunctionQueries-UsingFunctionQuery


-Hoss
http://www.lucidworks.com/

Reply via email to