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 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)
        Creates the TokenStream used for indexing this field. If appropriate, implementations should use the given Analyzer to create the TokenStreams.
        analyzer - Analyzer that should be used to create the TokenStreams from
        TokenStream value for indexing the document. Should always return a non-null value if the field is to be indexed
        Throws: - Can be thrown while creating the TokenStream