Hi, 'query' is a function returning a number. You can't use it as a query.
Add 'debugQuery=true' to your request and you'll see how your query is parsed (cf parsedquery) Franck Brisbart Le mardi 06 mai 2014 à 11:08 +0200, Matteo Grolla a écrit : > Hi everybody, > I'm having troubles with the function query > > "query(subquery, default)" > http://wiki.apache.org/solr/FunctionQuery#query > > running this > > http://localhost:8983/solr/select?q=query($qq,1)&qq={!dismax qf=text}hard > drive > > on collection1 gives me no results > but I was expecting the query to match all documents and obtain score=1 where > hard drive > didn't match > > > Can you tell me where I'm wrong? > > tried on Solr 4.2.1 and solr 4.5.0 > > Matteo