[jira] [Commented] (SOLR-12127) Using atomic updates to remove docValues type dynamic field does not work

2019-06-24 Thread Mikhail Khludnev (JIRA)


[ 
https://issues.apache.org/jira/browse/SOLR-12127?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16871205#comment-16871205
 ] 

Mikhail Khludnev commented on SOLR-12127:
-

Thank you, [~munendrasn] and congratulations!

> Using atomic updates to remove docValues type dynamic field does not work
> -
>
> Key: SOLR-12127
> URL: https://issues.apache.org/jira/browse/SOLR-12127
> Project: Solr
>  Issue Type: Bug
>  Components: update
>Affects Versions: 6.6.2, 7.2
>Reporter: Oliver Kuldmäe
>Assignee: Munendra S N
>Priority: Critical
> Fix For: 8.2
>
> Attachments: SOLR-12127.patch, SOLR-12127.patch, SOLR-12127.patch, 
> SOLR-12127.patch
>
>
> I have defined a dynamic field which is stored=false, indexed=false and 
> docValues=true. Attempting to set this field's value to null via atomic 
> update does not remove the field from the document. However, the document's 
> version is updated. Using atomic updates to set a value for the field does 
> work. Tested on 6.6.2 and 7.2.1. 
> An example of a non-working update query:
> {code:java}
> 
> 
> 
> 372335
> 
> 
> 
> 
> {code}
>  
> An example of a working update query:
> {code:java}
> 
> 
> 
> 372335
>  update="set">1521472499
> 
> 
> 
> {code}



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

-
To unsubscribe, e-mail: dev-unsubscr...@lucene.apache.org
For additional commands, e-mail: dev-h...@lucene.apache.org



[jira] [Commented] (SOLR-12127) Using atomic updates to remove docValues type dynamic field does not work

2019-06-24 Thread Munendra S N (JIRA)


[ 
https://issues.apache.org/jira/browse/SOLR-12127?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16871202#comment-16871202
 ] 

Munendra S N commented on SOLR-12127:
-

Thanks [~oliverkuldmae] for reporting

Thanks [~ichattopadhyaya] and [~mkhludnev] for helping in pushing this

> Using atomic updates to remove docValues type dynamic field does not work
> -
>
> Key: SOLR-12127
> URL: https://issues.apache.org/jira/browse/SOLR-12127
> Project: Solr
>  Issue Type: Bug
>  Components: update
>Affects Versions: 6.6.2, 7.2
>Reporter: Oliver Kuldmäe
>Assignee: Munendra S N
>Priority: Critical
> Fix For: 8.2
>
> Attachments: SOLR-12127.patch, SOLR-12127.patch, SOLR-12127.patch, 
> SOLR-12127.patch
>
>
> I have defined a dynamic field which is stored=false, indexed=false and 
> docValues=true. Attempting to set this field's value to null via atomic 
> update does not remove the field from the document. However, the document's 
> version is updated. Using atomic updates to set a value for the field does 
> work. Tested on 6.6.2 and 7.2.1. 
> An example of a non-working update query:
> {code:java}
> 
> 
> 
> 372335
> 
> 
> 
> 
> {code}
>  
> An example of a working update query:
> {code:java}
> 
> 
> 
> 372335
>  update="set">1521472499
> 
> 
> 
> {code}



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

-
To unsubscribe, e-mail: dev-unsubscr...@lucene.apache.org
For additional commands, e-mail: dev-h...@lucene.apache.org



[jira] [Commented] (SOLR-12127) Using atomic updates to remove docValues type dynamic field does not work

2019-06-24 Thread Munendra S N (JIRA)


[ 
https://issues.apache.org/jira/browse/SOLR-12127?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16871021#comment-16871021
 ] 

Munendra S N commented on SOLR-12127:
-

I'm assigning this to myself

> Using atomic updates to remove docValues type dynamic field does not work
> -
>
> Key: SOLR-12127
> URL: https://issues.apache.org/jira/browse/SOLR-12127
> Project: Solr
>  Issue Type: Bug
>  Components: update
>Affects Versions: 6.6.2, 7.2
>Reporter: Oliver Kuldmäe
>Assignee: Ishan Chattopadhyaya
>Priority: Critical
> Fix For: 8.2
>
> Attachments: SOLR-12127.patch, SOLR-12127.patch, SOLR-12127.patch, 
> SOLR-12127.patch
>
>
> I have defined a dynamic field which is stored=false, indexed=false and 
> docValues=true. Attempting to set this field's value to null via atomic 
> update does not remove the field from the document. However, the document's 
> version is updated. Using atomic updates to set a value for the field does 
> work. Tested on 6.6.2 and 7.2.1. 
> An example of a non-working update query:
> {code:java}
> 
> 
> 
> 372335
> 
> 
> 
> 
> {code}
>  
> An example of a working update query:
> {code:java}
> 
> 
> 
> 372335
>  update="set">1521472499
> 
> 
> 
> {code}



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

-
To unsubscribe, e-mail: dev-unsubscr...@lucene.apache.org
For additional commands, e-mail: dev-h...@lucene.apache.org



[jira] [Commented] (SOLR-12127) Using atomic updates to remove docValues type dynamic field does not work

2019-06-24 Thread ASF subversion and git services (JIRA)


[ 
https://issues.apache.org/jira/browse/SOLR-12127?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16871018#comment-16871018
 ] 

ASF subversion and git services commented on SOLR-12127:


Commit cf6c81c26be110acb4c3b1225d79adbb15d491c4 in lucene-solr's branch 
refs/heads/branch_8x from Munendra S N
[ https://gitbox.apache.org/repos/asf?p=lucene-solr.git;h=cf6c81c ]

SOLR-12127: set op with null or empty list val should be atomic update

* Inplace update supports set and inc operation but when null or
  empty list is specified with set op, then it should always be treated
  as atomic update since this case is equivalent to removing field
  from the document


> Using atomic updates to remove docValues type dynamic field does not work
> -
>
> Key: SOLR-12127
> URL: https://issues.apache.org/jira/browse/SOLR-12127
> Project: Solr
>  Issue Type: Bug
>  Components: update
>Affects Versions: 6.6.2, 7.2
>Reporter: Oliver Kuldmäe
>Assignee: Ishan Chattopadhyaya
>Priority: Critical
> Attachments: SOLR-12127.patch, SOLR-12127.patch, SOLR-12127.patch, 
> SOLR-12127.patch
>
>
> I have defined a dynamic field which is stored=false, indexed=false and 
> docValues=true. Attempting to set this field's value to null via atomic 
> update does not remove the field from the document. However, the document's 
> version is updated. Using atomic updates to set a value for the field does 
> work. Tested on 6.6.2 and 7.2.1. 
> An example of a non-working update query:
> {code:java}
> 
> 
> 
> 372335
> 
> 
> 
> 
> {code}
>  
> An example of a working update query:
> {code:java}
> 
> 
> 
> 372335
>  update="set">1521472499
> 
> 
> 
> {code}



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

-
To unsubscribe, e-mail: dev-unsubscr...@lucene.apache.org
For additional commands, e-mail: dev-h...@lucene.apache.org



[jira] [Commented] (SOLR-12127) Using atomic updates to remove docValues type dynamic field does not work

2019-06-24 Thread ASF subversion and git services (JIRA)


[ 
https://issues.apache.org/jira/browse/SOLR-12127?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16871007#comment-16871007
 ] 

ASF subversion and git services commented on SOLR-12127:


Commit 54aff4ac7d910155ba9a1dda915e6b1f1f29c68b in lucene-solr's branch 
refs/heads/master from Munendra S N
[ https://gitbox.apache.org/repos/asf?p=lucene-solr.git;h=54aff4a ]

SOLR-12127: set op with null or empty list val should be atomic update

* Inplace update supports set and inc operation but when null or
  empty list is specified with set op, then it should always be treated
  as atomic update since this case is equivalent to removing field
  from the document


> Using atomic updates to remove docValues type dynamic field does not work
> -
>
> Key: SOLR-12127
> URL: https://issues.apache.org/jira/browse/SOLR-12127
> Project: Solr
>  Issue Type: Bug
>  Components: update
>Affects Versions: 6.6.2, 7.2
>Reporter: Oliver Kuldmäe
>Assignee: Ishan Chattopadhyaya
>Priority: Critical
> Attachments: SOLR-12127.patch, SOLR-12127.patch, SOLR-12127.patch, 
> SOLR-12127.patch
>
>
> I have defined a dynamic field which is stored=false, indexed=false and 
> docValues=true. Attempting to set this field's value to null via atomic 
> update does not remove the field from the document. However, the document's 
> version is updated. Using atomic updates to set a value for the field does 
> work. Tested on 6.6.2 and 7.2.1. 
> An example of a non-working update query:
> {code:java}
> 
> 
> 
> 372335
> 
> 
> 
> 
> {code}
>  
> An example of a working update query:
> {code:java}
> 
> 
> 
> 372335
>  update="set">1521472499
> 
> 
> 
> {code}



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

-
To unsubscribe, e-mail: dev-unsubscr...@lucene.apache.org
For additional commands, e-mail: dev-h...@lucene.apache.org



[jira] [Commented] (SOLR-12127) Using atomic updates to remove docValues type dynamic field does not work

2019-06-24 Thread Ishan Chattopadhyaya (JIRA)


[ 
https://issues.apache.org/jira/browse/SOLR-12127?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16870992#comment-16870992
 ] 

Ishan Chattopadhyaya commented on SOLR-12127:
-

+1, LGTM.

> Using atomic updates to remove docValues type dynamic field does not work
> -
>
> Key: SOLR-12127
> URL: https://issues.apache.org/jira/browse/SOLR-12127
> Project: Solr
>  Issue Type: Bug
>  Components: update
>Affects Versions: 6.6.2, 7.2
>Reporter: Oliver Kuldmäe
>Assignee: Ishan Chattopadhyaya
>Priority: Critical
> Attachments: SOLR-12127.patch, SOLR-12127.patch, SOLR-12127.patch, 
> SOLR-12127.patch
>
>
> I have defined a dynamic field which is stored=false, indexed=false and 
> docValues=true. Attempting to set this field's value to null via atomic 
> update does not remove the field from the document. However, the document's 
> version is updated. Using atomic updates to set a value for the field does 
> work. Tested on 6.6.2 and 7.2.1. 
> An example of a non-working update query:
> {code:java}
> 
> 
> 
> 372335
> 
> 
> 
> 
> {code}
>  
> An example of a working update query:
> {code:java}
> 
> 
> 
> 372335
>  update="set">1521472499
> 
> 
> 
> {code}



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

-
To unsubscribe, e-mail: dev-unsubscr...@lucene.apache.org
For additional commands, e-mail: dev-h...@lucene.apache.org



[jira] [Commented] (SOLR-12127) Using atomic updates to remove docValues type dynamic field does not work

2019-06-23 Thread Lucene/Solr QA (JIRA)


[ 
https://issues.apache.org/jira/browse/SOLR-12127?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16870652#comment-16870652
 ] 

Lucene/Solr QA commented on SOLR-12127:
---

| (/) *{color:green}+1 overall{color}* |
\\
\\
|| Vote || Subsystem || Runtime || Comment ||
|| || || || {color:brown} Prechecks {color} ||
| {color:green}+1{color} | {color:green} test4tests {color} | {color:green}  0m 
 0s{color} | {color:green} The patch appears to include 2 new or modified test 
files. {color} |
|| || || || {color:brown} master Compile Tests {color} ||
| {color:green}+1{color} | {color:green} compile {color} | {color:green}  1m 
55s{color} | {color:green} master passed {color} |
|| || || || {color:brown} Patch Compile Tests {color} ||
| {color:green}+1{color} | {color:green} compile {color} | {color:green}  1m 
57s{color} | {color:green} the patch passed {color} |
| {color:green}+1{color} | {color:green} javac {color} | {color:green}  1m 
57s{color} | {color:green} the patch passed {color} |
| {color:green}+1{color} | {color:green} Release audit (RAT) {color} | 
{color:green}  1m 57s{color} | {color:green} the patch passed {color} |
| {color:green}+1{color} | {color:green} Check forbidden APIs {color} | 
{color:green}  1m 57s{color} | {color:green} the patch passed {color} |
| {color:green}+1{color} | {color:green} Validate source patterns {color} | 
{color:green}  1m 57s{color} | {color:green} the patch passed {color} |
|| || || || {color:brown} Other Tests {color} ||
| {color:green}+1{color} | {color:green} unit {color} | {color:green} 49m 
21s{color} | {color:green} core in the patch passed. {color} |
| {color:black}{color} | {color:black} {color} | {color:black} 56m  2s{color} | 
{color:black} {color} |
\\
\\
|| Subsystem || Report/Notes ||
| JIRA Issue | SOLR-12127 |
| JIRA Patch URL | 
https://issues.apache.org/jira/secure/attachment/12972606/SOLR-12127.patch |
| Optional Tests |  compile  javac  unit  ratsources  checkforbiddenapis  
validatesourcepatterns  |
| uname | Linux lucene1-us-west 4.4.0-137-generic #163~14.04.1-Ubuntu SMP Mon 
Sep 24 17:14:57 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux |
| Build tool | ant |
| Personality | 
/home/jenkins/jenkins-slave/workspace/PreCommit-SOLR-Build/sourcedir/dev-tools/test-patch/lucene-solr-yetus-personality.sh
 |
| git revision | master / 559abd8 |
| ant | version: Apache Ant(TM) version 1.9.3 compiled on July 24 2018 |
| Default Java | LTS |
|  Test Results | 
https://builds.apache.org/job/PreCommit-SOLR-Build/453/testReport/ |
| modules | C: solr solr/core U: solr |
| Console output | 
https://builds.apache.org/job/PreCommit-SOLR-Build/453/console |
| Powered by | Apache Yetus 0.7.0   http://yetus.apache.org |


This message was automatically generated.



> Using atomic updates to remove docValues type dynamic field does not work
> -
>
> Key: SOLR-12127
> URL: https://issues.apache.org/jira/browse/SOLR-12127
> Project: Solr
>  Issue Type: Bug
>  Components: update
>Affects Versions: 6.6.2, 7.2
>Reporter: Oliver Kuldmäe
>Assignee: Ishan Chattopadhyaya
>Priority: Critical
> Attachments: SOLR-12127.patch, SOLR-12127.patch, SOLR-12127.patch, 
> SOLR-12127.patch
>
>
> I have defined a dynamic field which is stored=false, indexed=false and 
> docValues=true. Attempting to set this field's value to null via atomic 
> update does not remove the field from the document. However, the document's 
> version is updated. Using atomic updates to set a value for the field does 
> work. Tested on 6.6.2 and 7.2.1. 
> An example of a non-working update query:
> {code:java}
> 
> 
> 
> 372335
> 
> 
> 
> 
> {code}
>  
> An example of a working update query:
> {code:java}
> 
> 
> 
> 372335
>  update="set">1521472499
> 
> 
> 
> {code}



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

-
To unsubscribe, e-mail: dev-unsubscr...@lucene.apache.org
For additional commands, e-mail: dev-h...@lucene.apache.org



[jira] [Commented] (SOLR-12127) Using atomic updates to remove docValues type dynamic field does not work

2019-06-23 Thread Mikhail Khludnev (JIRA)


[ 
https://issues.apache.org/jira/browse/SOLR-12127?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16870535#comment-16870535
 ] 

Mikhail Khludnev commented on SOLR-12127:
-

+1

> Using atomic updates to remove docValues type dynamic field does not work
> -
>
> Key: SOLR-12127
> URL: https://issues.apache.org/jira/browse/SOLR-12127
> Project: Solr
>  Issue Type: Bug
>  Components: update
>Affects Versions: 6.6.2, 7.2
>Reporter: Oliver Kuldmäe
>Assignee: Ishan Chattopadhyaya
>Priority: Critical
> Attachments: SOLR-12127.patch, SOLR-12127.patch, SOLR-12127.patch, 
> SOLR-12127.patch
>
>
> I have defined a dynamic field which is stored=false, indexed=false and 
> docValues=true. Attempting to set this field's value to null via atomic 
> update does not remove the field from the document. However, the document's 
> version is updated. Using atomic updates to set a value for the field does 
> work. Tested on 6.6.2 and 7.2.1. 
> An example of a non-working update query:
> {code:java}
> 
> 
> 
> 372335
> 
> 
> 
> 
> {code}
>  
> An example of a working update query:
> {code:java}
> 
> 
> 
> 372335
>  update="set">1521472499
> 
> 
> 
> {code}



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

-
To unsubscribe, e-mail: dev-unsubscr...@lucene.apache.org
For additional commands, e-mail: dev-h...@lucene.apache.org



[jira] [Commented] (SOLR-12127) Using atomic updates to remove docValues type dynamic field does not work

2019-06-23 Thread Munendra S N (JIRA)


[ 
https://issues.apache.org/jira/browse/SOLR-12127?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16870454#comment-16870454
 ] 

Munendra S N commented on SOLR-12127:
-

 [^SOLR-12127.patch] 
With changes entry

> Using atomic updates to remove docValues type dynamic field does not work
> -
>
> Key: SOLR-12127
> URL: https://issues.apache.org/jira/browse/SOLR-12127
> Project: Solr
>  Issue Type: Bug
>  Components: update
>Affects Versions: 6.6.2, 7.2
>Reporter: Oliver Kuldmäe
>Assignee: Ishan Chattopadhyaya
>Priority: Critical
> Attachments: SOLR-12127.patch, SOLR-12127.patch, SOLR-12127.patch, 
> SOLR-12127.patch
>
>
> I have defined a dynamic field which is stored=false, indexed=false and 
> docValues=true. Attempting to set this field's value to null via atomic 
> update does not remove the field from the document. However, the document's 
> version is updated. Using atomic updates to set a value for the field does 
> work. Tested on 6.6.2 and 7.2.1. 
> An example of a non-working update query:
> {code:java}
> 
> 
> 
> 372335
> 
> 
> 
> 
> {code}
>  
> An example of a working update query:
> {code:java}
> 
> 
> 
> 372335
>  update="set">1521472499
> 
> 
> 
> {code}



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

-
To unsubscribe, e-mail: dev-unsubscr...@lucene.apache.org
For additional commands, e-mail: dev-h...@lucene.apache.org



[jira] [Commented] (SOLR-12127) Using atomic updates to remove docValues type dynamic field does not work

2019-04-24 Thread Munendra S N (JIRA)


[ 
https://issues.apache.org/jira/browse/SOLR-12127?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16825186#comment-16825186
 ] 

Munendra S N commented on SOLR-12127:
-

[^SOLR-12127.patch]
[~ichattopadhyaya]
Rebased the patch to master

> Using atomic updates to remove docValues type dynamic field does not work
> -
>
> Key: SOLR-12127
> URL: https://issues.apache.org/jira/browse/SOLR-12127
> Project: Solr
>  Issue Type: Bug
>  Security Level: Public(Default Security Level. Issues are Public) 
>  Components: update
>Affects Versions: 6.6.2, 7.2
>Reporter: Oliver Kuldmäe
>Assignee: Ishan Chattopadhyaya
>Priority: Critical
> Attachments: SOLR-12127.patch, SOLR-12127.patch, SOLR-12127.patch, 
> SOLR-12127.patch.1
>
>
> I have defined a dynamic field which is stored=false, indexed=false and 
> docValues=true. Attempting to set this field's value to null via atomic 
> update does not remove the field from the document. However, the document's 
> version is updated. Using atomic updates to set a value for the field does 
> work. Tested on 6.6.2 and 7.2.1. 
> An example of a non-working update query:
> {code:java}
> 
> 
> 
> 372335
> 
> 
> 
> 
> {code}
>  
> An example of a working update query:
> {code:java}
> 
> 
> 
> 372335
>  update="set">1521472499
> 
> 
> 
> {code}



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

-
To unsubscribe, e-mail: dev-unsubscr...@lucene.apache.org
For additional commands, e-mail: dev-h...@lucene.apache.org



[jira] [Commented] (SOLR-12127) Using atomic updates to remove docValues type dynamic field does not work

2019-04-24 Thread Ishan Chattopadhyaya (JIRA)


[ 
https://issues.apache.org/jira/browse/SOLR-12127?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16825137#comment-16825137
 ] 

Ishan Chattopadhyaya commented on SOLR-12127:
-

[~munendrasn], can you please update for master?

> Using atomic updates to remove docValues type dynamic field does not work
> -
>
> Key: SOLR-12127
> URL: https://issues.apache.org/jira/browse/SOLR-12127
> Project: Solr
>  Issue Type: Bug
>  Security Level: Public(Default Security Level. Issues are Public) 
>  Components: update
>Affects Versions: 6.6.2, 7.2
>Reporter: Oliver Kuldmäe
>Assignee: Ishan Chattopadhyaya
>Priority: Critical
> Attachments: SOLR-12127.patch, SOLR-12127.patch
>
>
> I have defined a dynamic field which is stored=false, indexed=false and 
> docValues=true. Attempting to set this field's value to null via atomic 
> update does not remove the field from the document. However, the document's 
> version is updated. Using atomic updates to set a value for the field does 
> work. Tested on 6.6.2 and 7.2.1. 
> An example of a non-working update query:
> {code:java}
> 
> 
> 
> 372335
> 
> 
> 
> 
> {code}
>  
> An example of a working update query:
> {code:java}
> 
> 
> 
> 372335
>  update="set">1521472499
> 
> 
> 
> {code}



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

-
To unsubscribe, e-mail: dev-unsubscr...@lucene.apache.org
For additional commands, e-mail: dev-h...@lucene.apache.org



[jira] [Commented] (SOLR-12127) Using atomic updates to remove docValues type dynamic field does not work

2018-09-08 Thread Munendra S N (JIRA)


[ 
https://issues.apache.org/jira/browse/SOLR-12127?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16608007#comment-16608007
 ] 

Munendra S N commented on SOLR-12127:
-

 [^SOLR-12127.patch] 
Attached patch has tests included for both standalone and distrib.  Tests have 
been added in InPlaceUpdate test class even though with this change, set null 
would always be considered as atomic update (Didn't find better to place add 
this)
This would also fix SOLR-12128

> Using atomic updates to remove docValues type dynamic field does not work
> -
>
> Key: SOLR-12127
> URL: https://issues.apache.org/jira/browse/SOLR-12127
> Project: Solr
>  Issue Type: Bug
>  Security Level: Public(Default Security Level. Issues are Public) 
>  Components: update
>Affects Versions: 6.6.2, 7.2
>Reporter: Oliver Kuldmäe
>Priority: Critical
> Attachments: SOLR-12127.patch, SOLR-12127.patch
>
>
> I have defined a dynamic field which is stored=false, indexed=false and 
> docValues=true. Attempting to set this field's value to null via atomic 
> update does not remove the field from the document. However, the document's 
> version is updated. Using atomic updates to set a value for the field does 
> work. Tested on 6.6.2 and 7.2.1. 
> An example of a non-working update query:
> {code:java}
> 
> 
> 
> 372335
> 
> 
> 
> 
> {code}
>  
> An example of a working update query:
> {code:java}
> 
> 
> 
> 372335
>  update="set">1521472499
> 
> 
> 
> {code}



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

-
To unsubscribe, e-mail: dev-unsubscr...@lucene.apache.org
For additional commands, e-mail: dev-h...@lucene.apache.org



[jira] [Commented] (SOLR-12127) Using atomic updates to remove docValues type dynamic field does not work

2018-09-06 Thread Munendra S N (JIRA)


[ 
https://issues.apache.org/jira/browse/SOLR-12127?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16605908#comment-16605908
 ] 

Munendra S N commented on SOLR-12127:
-

[~oliverkuldmae]
I did little debugging to check how Solr decides if it is atomic or inplace 
update. In inplace updates, only set and inc operations are allowed. A check 
can be added here,  if the operation is set and value is null or empty list, 
treat the update as atomic update, which would solve the issue 
[^SOLR-12127.patch] 
I have attached the first draft (it doesn't include tests)

> Using atomic updates to remove docValues type dynamic field does not work
> -
>
> Key: SOLR-12127
> URL: https://issues.apache.org/jira/browse/SOLR-12127
> Project: Solr
>  Issue Type: Bug
>  Security Level: Public(Default Security Level. Issues are Public) 
>  Components: update
>Affects Versions: 6.6.2, 7.2
>Reporter: Oliver Kuldmäe
>Priority: Critical
> Attachments: SOLR-12127.patch
>
>
> I have defined a dynamic field which is stored=false, indexed=false and 
> docValues=true. Attempting to set this field's value to null via atomic 
> update does not remove the field from the document. However, the document's 
> version is updated. Using atomic updates to set a value for the field does 
> work. Tested on 6.6.2 and 7.2.1. 
> An example of a non-working update query:
> {code:java}
> 
> 
> 
> 372335
> 
> 
> 
> 
> {code}
>  
> An example of a working update query:
> {code:java}
> 
> 
> 
> 372335
>  update="set">1521472499
> 
> 
> 
> {code}



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

-
To unsubscribe, e-mail: dev-unsubscr...@lucene.apache.org
For additional commands, e-mail: dev-h...@lucene.apache.org



[jira] [Commented] (SOLR-12127) Using atomic updates to remove docValues type dynamic field does not work

2018-09-05 Thread Munendra S N (JIRA)


[ 
https://issues.apache.org/jira/browse/SOLR-12127?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16604185#comment-16604185
 ] 

Munendra S N commented on SOLR-12127:
-

[~oliverkuldmae]
I think, this the expected behavior. 
As per the description, the field which needs to be updated is *indexed=false*, 
*stored=false* and *docvalues=true*. 
Also, Looking at the field name and value, this field is a numeric field. 
(Also, assuming it is single-valued)

On every atomic update request, Solr tries to intelligently decide if the 
update in in-place update or not.
The update you have shared qualifies for in-place update. As per Solr's 
documentation, in-place update supports set operation, Where you can set or 
replace value.
setting value to null is essentially is removing the field which is not allowed 
in in-place updates.

To treat this as atomic update replace set null with remove operation
{quote}Also, this behavior is not limited to dynamic fields, but also for 
normal fields{quote}


> Using atomic updates to remove docValues type dynamic field does not work
> -
>
> Key: SOLR-12127
> URL: https://issues.apache.org/jira/browse/SOLR-12127
> Project: Solr
>  Issue Type: Bug
>  Security Level: Public(Default Security Level. Issues are Public) 
>  Components: update
>Affects Versions: 6.6.2, 7.2
>Reporter: Oliver Kuldmäe
>Priority: Critical
>
> I have defined a dynamic field which is stored=false, indexed=false and 
> docValues=true. Attempting to set this field's value to null via atomic 
> update does not remove the field from the document. However, the document's 
> version is updated. Using atomic updates to set a value for the field does 
> work. Tested on 6.6.2 and 7.2.1. 
> An example of a non-working update query:
> {code:java}
> 
> 
> 
> 372335
> 
> 
> 
> 
> {code}
>  
> An example of a working update query:
> {code:java}
> 
> 
> 
> 372335
>  update="set">1521472499
> 
> 
> 
> {code}



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

-
To unsubscribe, e-mail: dev-unsubscr...@lucene.apache.org
For additional commands, e-mail: dev-h...@lucene.apache.org