Thanks but I tried this and I saw that this work in a standard scenario, but in my query i use a my own query parser and it seems that they dont doing the AND and returns all the docs in the index:
My query: _query_:"{!bm25}car" AND _val_:marketValue -> 67000 docs returned Solr query parser car AND _val_:marketValue -> 300 docs returned Thanks, 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 2011/4/12 Erik Hatcher <erik.hatc...@gmail.com> > Try using AND (or set q.op): > > q=car+AND+_val_:marketValue > > On Apr 12, 2011, at 07:11 , Marco Martinez wrote: > > > Hi everyone, > > > > My situation is the next, I need to sum the value of a field to the score > to > > the docs returned in the query, but not to all the docs, example: > > > > q=car returns 3 docs > > > > 1- > > name=car ford > > marketValue=1 > > score=1.3 > > > > 2- > > name=car citroen > > marketValue=2 > > score=1.3 > > > > 3- > > name=car mercedes > > marketValue=0.5 > > score=1.3 > > > > but if want to sum the marketValue to the score, my returned list is the > > next: > > > > q=car+_val_:marketValue > > > > 1- > > name=bus > > marketValue=5 > > score=5 > > > > 2- > > name=car citroen > > marketValue=2 > > score=3.3 > > > > 3- > > name=car ford > > marketValue=1 > > score=2.3 > > > > 4- > > name=car mercedes > > marketValue=0.5 > > score=1.8 > > > > > > Its possible to apply the function query only to the documents returned > in > > the first query? > > > > > > 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 > >