Class MarcSolrClient
java.lang.Object
de.gwdg.metadataqa.marc.datastore.MarcSolrClient
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionMarcSolrClient(String url) MarcSolrClient(org.apache.solr.client.solrj.SolrClient client) -
Method Summary
Modifier and TypeMethodDescriptionvoidcommit()org.apache.solr.common.SolrInputDocumentorg.apache.solr.common.SolrDocumentGiven an id, return the corresponding SolrDocument from the index, and also remove the id field.longgetCount()booleanvoidindex(org.apache.solr.common.SolrInputDocument document) voidindexDuplumKey(String id, Map<String, Object> objectMap) voidvoidindexWithTokenizedField(boolean indexWithTokenizedField) voidoptimize()voidsetFieldPrefix(String fieldPrefix) voidsetTrimId(boolean trimId)
-
Field Details
-
ID_QUERY
- See Also:
-
-
Constructor Details
-
MarcSolrClient
public MarcSolrClient() -
MarcSolrClient
-
MarcSolrClient
public MarcSolrClient(org.apache.solr.client.solrj.SolrClient client)
-
-
Method Details
-
indexMap
-
index
public void index(org.apache.solr.common.SolrInputDocument document) -
createSolrDoc
-
indexDuplumKey
public void indexDuplumKey(String id, Map<String, Object> objectMap) throws IOException, org.apache.solr.client.solrj.SolrServerException- Throws:
IOExceptionorg.apache.solr.client.solrj.SolrServerException
-
commit
public void commit() -
optimize
public void optimize() -
get
Given an id, return the corresponding SolrDocument from the index, and also remove the id field. -
getCount
public long getCount() -
getTrimId
public boolean getTrimId() -
setTrimId
public void setTrimId(boolean trimId) -
indexWithTokenizedField
public void indexWithTokenizedField(boolean indexWithTokenizedField) -
getFieldPrefix
-
setFieldPrefix
-