One way is to use the boost qparser: http://search-lucene.com/jd/solr/org/apache/solr/search/BoostQParserPlugin.html q={!boost b=productValueField}shops in madrid
Or you can use the edismax parser which as a "boost" parameter that does the same thing: defType=edismax&q=shops in madrid&boost=productValueField -Yonik http://www.lucidimagination.com On Tue, Jun 7, 2011 at 6:53 AM, Marco Martinez <mmarti...@paradigmatecnologico.com> wrote: > Hi, > > I need to use the function queries operations with the score of a given > query, but only in the docset that i get from the query and i dont know if > this is possible. > > Example: > > q=shops in madrid returns 10000 docs with a specific score for each doc > > but now i need to do some stuff like > > q=sum(product(2,query(shops in madrid),productValueField) but this will be > return all the docs in my index. > > > I know that i can do it via filter queries, ex, q=sum(product(2,query(shops > in madrid),productValueField)&fq=shops in madrid but this will do the query > two times and i dont want this because the performance is important to our > application. > > > Is there other approach to accomplished that= > > > Thanks in advance, > > Marco Martínez Bautista > http://www.paradigmatecnologico.com > Avenida de Europa, 26. Ática 5. 3ª Planta > 28224 Pozuelo de Alarcón > Tel.: 91 352 59 42 >