Re: Ignoring Duplicates in Multivalue Field

2014-11-03 Thread Matthew Nigl
From memory, if you use UniqFieldsUpdateProcessor after DistributedUpdateProcessor, then you will be filtering on the set [1, 2, 3, 2]. *updateRequestProcessorChain name=uniq-fields* *processor class=solr.DistributedUpdateProcessorFactory/ * * processor

Re: suggestion for new custom atomic update

2014-10-27 Thread Matthew Nigl
You can get the summed value, 13, if you add a processor after DistributedUpdateProcessorFactory in the URP chain. Then one possibility would be to clone this value to another field, such as field_b, and run other processors on that field. Or for something more customized, you can use the

Re: suggestion for new custom atomic update

2014-10-27 Thread Matthew Nigl
that will run after DistributedUpdateProcessorFactory? Thank you very much. -Original Message- From: Matthew Nigl [mailto:matthew.n...@gmail.com] Sent: Monday, October 27, 2014 12:10 PM To: solr-user@lucene.apache.org Subject: Re: suggestion for new custom atomic update You can

Re: Delete in Solr based on foreign key (like SQL delete from … where id in (select id from…)

2014-10-15 Thread Matthew Nigl
OR ...)/query/delete. Since there are many documents to delete, you would want to hold off committing until the end. On 11 October 2014 02:34, Mikhail Khludnev mkhlud...@griddynamics.com wrote: On Fri, Oct 10, 2014 at 6:16 AM, Matthew Nigl matthew.n...@gmail.com wrote: But I get the same response

Re: How does one specify which collections to use?

2014-10-15 Thread Matthew Nigl
Hi Aaron, You would need to set 'path' in the options array when you create a SolrClient. http://php.net/manual/en/solrclient.construct.php Regards, Matt On 15 October 2014 19:31, Aaron Lewis the.warl0ck.1...@gmail.com wrote: Hi, I'm using PHP client here:

Re: Does the SolrQuery class support 'inc' command?

2014-10-15 Thread Matthew Nigl
Hi Aaron, I do not believe that there is direct support for atomic updates with this API. Other libraries such as Solarium do support this. However, one option is that you could generate the atomic update XML in code and send it via a raw request: http://php.net/manual/en/solrclient.request.php

Re: Delete in Solr based on foreign key (like SQL delete from … where id in (select id from…)

2014-10-09 Thread Matthew Nigl
I was going to say that the below should do what you are asking: deletequery{!join from=docid_s to=foreign_key_docid_s}(message_state_ts:[* TO 2014-10-05T00:00:00Z} AND message_state_ts:{2014-10-01T00:00:00Z TO *])/query/delete But I get the same response as in

NullPointerException for ExternalFileField when key field has no terms

2014-10-08 Thread Matthew Nigl
Hi, I use various ID fields as the keys for various ExternalFileField fields, and I have noticed that I will sometimes get the following error: ERROR org.apache.solr.servlet.SolrDispatchFilter û null:java.lang.NullPointerException at

Re: NullPointerException for ExternalFileField when key field has no terms

2014-10-08 Thread Matthew Nigl
Thanks Markus. I initially interpreted the line It's OK to have a keyField value that can't be found in the index as meaning that the key field value in the external file does not have to exist as a term in the index. On 8 October 2014 23:56, Markus Jelsma markus.jel...@openindex.io wrote:

Re: Currency calculation does not seem to be using cross-rates

2014-09-30 Thread Matthew Nigl
in the index get returned as 499.99 due to the rounding error when it is converted from AUD - USD - AUD. If I am using any of the above incorrectly then please let me know. Regards, Matt On 29 August 2014 14:54, Matthew Nigl matthew.nigl+s...@gmail.com wrote: Hi all, I have an issue where

Currency calculation does not seem to be using cross-rates

2014-08-29 Thread Matthew Nigl
Hi all, I have an issue where the currency function is not returning the expected value in particular scenarios. I believe my config is correct and I am able to replicate the issue over a few machines. The issue occurs when converting the value of a currency field from the source currency into a

Currency calculation does not seem to be using cross-rates

2014-08-29 Thread Matthew Nigl
Hi all, I have an issue where the currency function is not returning the expected value in particular scenarios. I believe my config is correct and I am able to replicate the issue over a few machines. The issue occurs when converting the value of a currency field from the source currency into a