You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@solr.apache.org by GitBox <gi...@apache.org> on 2022/10/26 19:22:12 UTC

[GitHub] [solr] risdenk opened a new pull request, #1134: SOLR-16293: Luke request fails for document with a binary field

risdenk opened a new pull request, #1134:
URL: https://github.com/apache/solr/pull/1134

   https://issues.apache.org/jira/browse/SOLR-16293


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@solr.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@solr.apache.org
For additional commands, e-mail: issues-help@solr.apache.org


[GitHub] [solr] risdenk merged pull request #1134: SOLR-16293: Luke request fails for document with a binary field

Posted by GitBox <gi...@apache.org>.
risdenk merged PR #1134:
URL: https://github.com/apache/solr/pull/1134


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@solr.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@solr.apache.org
For additional commands, e-mail: issues-help@solr.apache.org


[GitHub] [solr] risdenk commented on a diff in pull request #1134: SOLR-16293: Luke request fails for document with a binary field

Posted by GitBox <gi...@apache.org>.
risdenk commented on code in PR #1134:
URL: https://github.com/apache/solr/pull/1134#discussion_r1006101860


##########
solr/core/src/java/org/apache/solr/handler/admin/LukeRequestHandler.java:
##########
@@ -341,10 +342,9 @@ private static SimpleOrderedMap<Object> getDocumentFieldsInfo(
                     .array(),
                 StandardCharsets.ISO_8859_1));
       }
-      if (!ftype.isPointField()) {
+      if (ftype != null && !ftype.isPointField()) {
         Term t =
-            new Term(
-                field.name(), ftype != null ? ftype.storedToIndexed(field) : field.stringValue());

Review Comment:
   ftype is always nonnull - otherwise `ftype.isPointField` would blow up. This simplifies the `new Term` call. 



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@solr.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@solr.apache.org
For additional commands, e-mail: issues-help@solr.apache.org