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.
Hi Mei, You are right. Suddenlly it looks clear - is it too late? :-) Let me look at it again tomorrow. Thank you very much :-) Noam. Wangsheng Mei wrote: > > 2010/1/22 Noam G. > >> >> Hi Mei, >> >> I replyed to you directlly by mistake - so here is the message again - >> allmost the sam

Re: Choosing what document to return.

2010-01-21 Thread Wangsheng Mei
2010/1/22 Noam G. > > Hi Mei, > > I replyed to you directlly by mistake - so here is the message again - > allmost the same ;-) > > I think I'm getting it now :-) > > Let's take your suggestion: > name:abc AND ((network_id:network1 AND payout:[minval TO *]) OR > -network_id:network1) > > What I n

Re: Choosing what document to return.

2010-01-21 Thread Noam G.
Hi Mei, I replyed to you directlly by mistake - so here is the message again - allmost the same ;-) I think I'm getting it now :-) Let's take your suggestion: name:abc AND ((network_id:network1 AND payout:[minval TO *]) OR -network_id:network1) What I need is not the value of payout but, 50% o

Re: Choosing what document to return.

2010-01-21 Thread Wangsheng Mei
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. > > Hi All (Erick, David...) > > Thanks for replying. > > Let me try to elaborate: > - Each document holds a string value called name, an int parameter called >

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-document-

Re: Choosing what document to return.

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

Re: Choosing what document to return.

2010-01-21 Thread Wangsheng Mei
I am not very sure if you are talking about a bit complex boolean queries. According stardard boolean logic, complex if-else would be normalized by using union, intersection, not. you omited some of your logic, lets assume it as: if( FieldA == myval1) { if(FieldB == 1){ don't return the

Re: Choosing what document to return.

2010-01-21 Thread Chantal Ackermann
Hi Noam, if you know about those rules at index time, you should put the information into the index and simply query only for those documents that have the desired value(s). Cheers, Chantal Noam G. schrieb: Hi Guys, I'll start by thanking every one for an amazing search engine! What am I

Re: Choosing what document to return.

2010-01-21 Thread Erick Erickson
What's the higher-level task you're trying to accomplish? Because on a quick read it looks like you're trying something that's akin to a join between two indexes, and if that's accurate I have great fears about performance. I guess it boils down to how costly getting your other_index_value is

Re: Choosing what document to return.

2010-01-21 Thread Smiley, David W.
I don't understand your question. Are myval1...3 fixed and controlled by your interface or are they an arbitrary N number of query words from a user query? In any case, you may need to write a request handler. ~ David Smiley Author: http://www.packtpub.com/solr-1-4-enterprise-search-server/ O