hi, Noam, you can try this one, name:abc AND ((network_id:network1 AND payout:[minval TO *]) OR -network_id:network1)
2010/1/21 Noam G. <noam...@gmail.com> > > Hi All (Erick, David...) > > Thanks for replying. > > Let me try to elaborate: > - Each document holds a string value called name, an int parameter called > payout a parameter called network_id. > - Name can be any string. > - Payout can be any number. > - Network_id can be one of maximum 20 available values (for example > "network1" , "network2" and so on). > > The query will need to pass: > - name:"abc" (for example) > - network:"network1" > - minval:20 > > The result will return only: > - Documents that have "abc" in their name (just to empesize the need of the > regular query also) > - If document.network_id == "network1" then > if payout>minval then > add the document to the results. > end if > else > don't add the document to the results. > end if > > As you can see the problem I have is with the "if-else". > > I hope it was clearer now :-) > > Noam. > -- > View this message in context: > http://old.nabble.com/Choosing-what-document-to-return.-tp27259310p27259888.html > Sent from the Solr - User mailing list archive at Nabble.com. > > -- 梅旺生