Details
-
Bug
-
Status: Closed
-
Minor
-
Resolution: Not A Problem
-
7.7
-
None
-
None
Description
I have an URP that, in processAdd(), gets a field value via SolrInputField.getValue(). In a normal unit test this yields me a String. But in a distributed test i get a ByteArrayUtf8CharSequence.
If it is a ByteArrayUtf8CharSequence the getStringOrNull() method always returns null unless some internal method called _getStr first.
This is either by design or a mistake. If it is a mistake, then the fix is to use toString() and the getStringOrNull() method can be removed (it would become a duplicate for toString(). If it is by design, then nothing is obvious from the JavaDoc and it should clarify.
This is since 7.7.0.
Attachments
Issue Links
- causes
-
SOLR-13331 Atomic Update Multivalue remove does not work
-
- Closed
-
- is related to
-
SOLR-12992 Avoid creating Strings from BytesRef in ExportWriter
-
- Closed
-
-
SOLR-13255 LanguageIdentifierUpdateProcessor broken for documents sent with SolrJ/javabin
-
- Closed
-
- relates to
-
SOLR-13255 LanguageIdentifierUpdateProcessor broken for documents sent with SolrJ/javabin
-
- Closed
-