Migration to solr9. Can we use backup from solr8

2023-01-06 Thread L'HARHANT Mikael
Hello, We have the project to migrate from solr8 to solr9. Currently, we make daily backups on solr8. Can these backups be used to initialize the project with solr9? Thank you.

Some questions about Solr NOT query

2023-01-06 Thread Changcheng Shao
Hi, Solr team I am using Solr 8.11, and I want to ask some questions about NOT query. My original query is: network_id:379619 AND (object_type:("ssp_deal" OR "ssp_buyer_group" OR "ssp_buyer")) AND (network_id:("379619")) AND (*:* NOT user_id: 0) And I opened the debugQuery, the log is: "rawq

Re: Some questions about Solr NOT query

2023-01-06 Thread Mikhail Khludnev
Hello, I think these are relevant https://cwiki.apache.org/confluence/display/solr/NegativeQueryProblems https://lucidworks.com/post/solr-boolean-operators/ I think ...)) -user_id:0 is perfect syntax. On Fri, Jan 6, 2023 at 1:01 PM Changcheng Shao wrote: > Hi, Solr team > I am using Solr 8.11, a

Re: Some questions about Solr NOT query

2023-01-06 Thread Thomas Corthals
Hi A negative query is a subtraction from a set of matched documents. With (*:* NOT user_id:0) you are subtracting from the set of all documents in the index first, then intersecting with the documents that match the other clauses. With (NOT user_id:0) you are subtracting directly from the smaller

Re: Migration to solr9. Can we use backup from solr8

2023-01-06 Thread Jan Høydahl
Hi, Depends. If those Solr 8 indices were initially created on Solr 8, then yes - if you keep same schema etc. If the index was initially built on Solr 7, and then you upgraded to Solr 8, then you might not be able to use a backup with solr 9 due to the N-1 back-compat. But just try on a dev/te

Re: Setting a parameter from a update script processor script

2023-01-06 Thread Matthew Castrigno
The need arises because the only way to differentiate between a set of commands and JSON document is the command.json parameter. This is why it is necessary so the payload can be interpreted as a command instead. From: Shawn Heisey Sent: Thursday, January 5, 202

Re: Setting a parameter from a update script processor script

2023-01-06 Thread Matthew Castrigno
There is a setParams but it has no argument, so it is unclear what it is using to set the parameters. https://solr.apache.org/docs/9_1_0/core/org/apache/solr/request/SolrQueryRequest.html#setParams(org.apache.solr.common.params.SolrParams) From: Matthew Castrigno

Re: Setting a parameter from a update script processor script

2023-01-06 Thread Shawn Heisey
On 1/6/23 10:53, Matthew Castrigno wrote: There is a setParams but it has no argument, so it is unclear what it is using to set the parameters. https://solr.apache.org/docs/9_1_0/core/org/apache/solr/request/SolrQueryRequest.html#setParams(org.apache.solr.common.params.SolrParams) That does h