Delete by query

2010-01-25 Thread Noam G.
Hi, I have an index with 3M docs. Each doc has a field calld version_uuid. I want to delete all docs that theire version_uuid is other then 'e04534e2-28db-4420-a5f3-300477872c11' (for example :-)) This is the query I submit to the SolrServer object using the deleteByQuery method: NOT

RE: Delete by query

2010-01-25 Thread Noam G.
Hi David, Thank you very much - that did the trick :-) Noam. -- View this message in context: http://old.nabble.com/Delete-by-query-tp27306968p27307336.html Sent from the Solr - User mailing list archive at Nabble.com.

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.

Choosing what document to return.

2010-01-21 Thread Noam G.
Hi Guys, I'll start by thanking every one for an amazing search engine! What am I trying to do? Basically what I need is the ability to do some kind of switch or an if-else flow based on the field value and a parameter that I will pass using the query string. The result will be documents that

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

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:

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%

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. noam...@gmail.com Hi Mei, I replyed to you directlly by mistake - so here is the message again - allmost