Package org.apache.solr.handler.designer
Interface SampleDocumentsLoader
-
- All Superinterfaces:
NamedListInitializedPlugin
- All Known Implementing Classes:
DefaultSampleDocumentsLoader
public interface SampleDocumentsLoader extends NamedListInitializedPlugin
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default boolean
ensureUniqueKey(SchemaField idField, List<org.apache.solr.common.SolrInputDocument> docs)
Ensure every sample document has a unique ID, but only applies if the unique key field is a string.SampleDocuments
parseDocsFromStream(org.apache.solr.common.params.SolrParams params, org.apache.solr.common.util.ContentStream stream, int maxDocsToLoad)
-
Methods inherited from interface org.apache.solr.util.plugin.NamedListInitializedPlugin
init
-
-
-
-
Method Detail
-
parseDocsFromStream
SampleDocuments parseDocsFromStream(org.apache.solr.common.params.SolrParams params, org.apache.solr.common.util.ContentStream stream, int maxDocsToLoad) throws IOException
- Throws:
IOException
-
ensureUniqueKey
default boolean ensureUniqueKey(SchemaField idField, List<org.apache.solr.common.SolrInputDocument> docs)
Ensure every sample document has a unique ID, but only applies if the unique key field is a string.
-
-