Re: Choosing what document to return.

2010-01-24 Thread Noam G.
Hi Mei Thank you very much - looks good :-) Noam. -- View this message in context: http://old.nabble.com/Choosing-what-document-to-return.-tp27259310p27293083.html Sent from the Solr - User mailing list archive at Nabble.com.

Re: Choosing what document to return.

2010-01-21 Thread Noam G.
te 2*minval first as newMinval = 2*minval, and use > name:abc AND ((network_id:network1 AND payout:[newMinval TO *]) OR > -network_id:network1)? > :-) > >> >> How can I do it? >> >> And one more time - thank you :-) >> >> Noam. >> -- >>

Re: Choosing what document to return.

2010-01-21 Thread Wangsheng Mei
, right? why not calculate 2*minval first as newMinval = 2*minval, and use name:abc AND ((network_id:network1 AND payout:[newMinval TO *]) OR -network_id:network1)? :-) > > How can I do it? > > And one more time - thank you :-) > > Noam. > -- > View this message in context:

Re: Choosing what document to return.

2010-01-21 Thread Noam G.
ut but, 50% of payout - and in another query a differnt value - I guess I need to use a function? How can I do it? And one more time - thank you :-) Noam. -- View this message in context: http://old.nabble.com/Choosing-what-document-to-return.-tp27259310p27261312.html Sent from the Solr - User ma

Re: Choosing what document to return.

2010-01-21 Thread Wangsheng Mei
quot; 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 :-) > &g

Re: Choosing what document to return.

2010-01-21 Thread Noam G.
Hi Mei, The problem is that I need to do a calculation on the field. So I assumed I need to extend one of the classes in order to be able to do a calculation on a field with an if-else capabailities. Don't I? Noam. -- View this message in context: http://old.nabble.com/Choosing-what-doc

Re: Choosing what document to return.

2010-01-21 Thread Noam G.
earer 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.

Re: Choosing what document to return.

2010-01-21 Thread Wangsheng Mei
t; }else if(index_value == myval2) { > ... > }else if(index_value == myval3) { > ... > } > > What should I override to implement this? > > Thank you very much, > > Noam. > -- > View this message in context: > http://old.nabble.com/Choosing-what-document-to-return.-tp27259310p27259310.html > Sent from the Solr - User mailing list archive at Nabble.com. > > -- 梅旺生

Re: Choosing what document to return.

2010-01-21 Thread Chantal Ackermann
ride to implement this? Thank you very much, Noam. -- View this message in context: http://old.nabble.com/Choosing-what-document-to-return.-tp27259310p27259310.html Sent from the Solr - User mailing list archive at Nabble.com.

Re: Choosing what document to return.

2010-01-21 Thread Erick Erickson
se if(index_value == myval2) { > ... > }else if(index_value == myval3) { > ... > } > > What should I override to implement this? > > Thank you very much, > > Noam. > -- > View this message in context: > http://old.nabble.com/Choosing-what-document-to-return.-tp27259310p27259310.html > Sent from the Solr - User mailing list archive at Nabble.com. > >

Re: Choosing what document to return.

2010-01-21 Thread Smiley, David W.
other_index_value == 1){ >don't return the document; >} else { >return the document; >} > }else if(index_value == myval2) { > ... > }else if(index_value == myval3) { > ... > } > > What should I override to implement this? > > Than

Choosing what document to return.

2010-01-21 Thread Noam G.
lue == myval2) { ... }else if(index_value == myval3) { ... } What should I override to implement this? Thank you very much, Noam. -- View this message in context: http://old.nabble.com/Choosing-what-document-to-return.-tp27259310p27259310.html Sent from the Solr - User mailing list archive at Nabble.com.