Class DocsStreamer

    • Field Detail

      • KNOWN_TYPES

        public static final Set<Class> KNOWN_TYPES
    • Constructor Detail

    • Method Detail

      • currentIndex

        public int currentIndex()
      • convertLuceneDocToSolrDoc

        public static SolrDocument convertLuceneDocToSolrDoc​(org.apache.lucene.document.Document doc,
                                                             IndexSchema schema,
                                                             ReturnFields fields)
        Converts the specified Document into a SolrDocument.

        The use of ReturnFields can be important even when it was already used to retrieve the Document from SolrDocumentFetcher because the Document may have been cached with more fields then are desired.

        Parameters:
        doc - Document to be converted, must not be null
        schema - IndexSchema containing the field/fieldType details for the index the Document came from, must not be null.
        fields - ReturnFields instance that can be use to limit the set of fields that will be converted, must not be null
      • getValue

        public static Object getValue​(SchemaField sf,
                                      org.apache.lucene.index.IndexableField f)