Uploaded image for project: 'Solr'
  1. Solr
  2. SOLR-9988

Add method toInternalByteRef to FieldType and possibly deprecate toInternal()

    XMLWordPrintableJSON

    Details

    • Type: Improvement
    • Status: Open
    • Priority: Minor
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: None

      Description

      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

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                tflobbe Tomas Eduardo Fernandez Lobbe
              • Votes:
                0 Vote for this issue
                Watchers:
                4 Start watching this issue

                Dates

                • Created:
                  Updated: