Interface IndexableField

    • Method Detail

      • name

        java.lang.String name()
        Field name
      • binaryValue

        BytesRef binaryValue()
        Non-null if this field has a binary value
      • stringValue

        java.lang.String stringValue()
        Non-null if this field has a string value
      • readerValue

        java.io.Reader readerValue()
        Non-null if this field has a Reader value
      • numericValue

        java.lang.Number numericValue()
        Non-null if this field has a numeric value
      • tokenStream

        TokenStream tokenStream​(Analyzer analyzer)
                         throws java.io.IOException
        Creates the TokenStream used for indexing this field. If appropriate, implementations should use the given Analyzer to create the TokenStreams.
        Parameters:
        analyzer - Analyzer that should be used to create the TokenStreams from
        Returns:
        TokenStream value for indexing the document. Should always return a non-null value if the field is to be indexed
        Throws:
        java.io.IOException - Can be thrown while creating the TokenStream