Re: Getting NPE while doing atomic updates using add-distinct for a multivalued field [Solr 8.11.2]

2024-03-29 Thread Susmit Shukla
Ran across similar NullPointerException on Atomic update . Some pointers - the input update contained more than one update for the same unique id . the atomic update operation was doing both 'remove' and add and some value was null. add-distinct without null value fixed it. On Thu, Mar 28, 2024 a

Re: deleteById for multiple ids with route parameter

2023-05-12 Thread Susmit Shukla
collection)" in the > solution. Could you please provide an explanation? It would be beneficial. > > On Fri, May 12, 2023 at 10:30 AM Susmit Shukla > wrote: > > > yes, route as well as id parameter is required if the collection is > sharded > > on any other fie

Re: deleteById for multiple ids with route parameter

2023-05-11 Thread Susmit Shukla
yes, route as well as id parameter is required if the collection is sharded on any other field than the unique id. This feature was broken in solr prior to 8.10. It was fixed with this jira - https://issues.apache.org/jira/browse/SOLR-8889. Multiple ids with route can be deleted by using update re

Re: deleteById for multiple ids with route parameter

2023-05-11 Thread Susmit Shukla
yes, route as well as id parameter is required if the collection is sharded on any other field than the unique id. This feature was broken in solr prior to 8.10. It was fixed with this jira - https://issues.apache.org/jira/browse/SOLR-8889. Multiple ids with route can be deleted by using update re

Re: Can I insert query result into another collection of the same Solr?

2022-03-24 Thread Susmit Shukla
Hi Zhiqing, You can use the 'Stream' menu option on solr console to run the streaming query. Paste the streaming expression and execute - Solrj can also execute the expression , here is a page that explains it- https://lucidworks.com/post/streaming-expressions-in-solrj/ search(collection1,

Streaming evaluators - exists

2021-12-23 Thread Susmit Shukla
Hi, I need to annotate the documents matching a simple boolean "OR" query with actual terms found in each document. It is possible in single pass using exists() function in fl param with /select handler. e.g q=text:(val1 OR val2 OR val3) &fl=foo1:exists(query({!v='text:(val1)'})),foo2:exists(query

Streaming with exists() function

2021-12-23 Thread Susmit Shukla
Hi, I need to annotate the documents matching a simple boolean "OR" query with actual terms found in each document. It is possible in single pass using exists() function in fl param with /select handler. e.g q=text:(val1 OR val2) &fl=foo1:exists(query({!v='text:(val1)'})),foo2:exists(query({!v='te

Re: Distributed search

2021-04-16 Thread Susmit Shukla
Solr streaming may be useful in your case. It can also execute "joins" across different solr cloud instances and also has a SQL facade. Parallel sql https://solr.apache.org/guide/8_6/parallel-sql-interface.html lower level streaming interface https://solr.apache.org/guide/8_6/streaming-expression