Tomás Fernández Löbbe created SOLR-9988: -------------------------------------------
Summary: Add method toInternalByteRef to FieldType and possibly deprecate toInternal() Key: SOLR-9988 URL: https://issues.apache.org/jira/browse/SOLR-9988 Project: Solr Issue Type: Improvement Security Level: Public (Default Security Level. Issues are Public) Reporter: Tomás Fernández Löbbe Priority: Minor Point FieldTypes can't be Strings in it's "internal representation", so calling {{ft.toInternal(...)}} is not supported. For those fields we use {{toInternalByteRef(...)}} that does the same thing but returns a {{BytesRef}} instance instead of a String. In many cases, the consumer of {{toInternal(...)}} actually needs (or can optionally use) a {{BytesRef}} and we end up creating one from the String. It would be better to have {{toInternal()}} return a {{BytesRef}} instance, it can be easily converted to a String if needed -- This message was sent by Atlassian JIRA (v6.3.4#6332) --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@lucene.apache.org For additional commands, e-mail: dev-h...@lucene.apache.org