Interface IndexableField

    • Method Detail

      • name

        String name()
        Field name
      • binaryValue

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

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

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

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

        TokenStream tokenStream​(Analyzer analyzer)
                         throws 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:
        IOException - Can be thrown while creating the TokenStream