lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From fabigol <fabien.stou...@vialtis.com>
Subject Re: org.apache.solr.common.SolrException: Document is missing mandatory uniqueKey field: id
Date Sun, 01 Nov 2015 15:39:07 GMT
hi,
if i understand well.
In the configuration following:
<entity rootEntity="true" name="tiers" dataSource="myvialtis"
			query="select * from bi_solr_tiers" transformer="RegexTransformer">

			<field name="ID" column="tiers_id" />
			<field name="DOC_TYPE" column="tiers_doc_type" />
			<field name="ID_CLIENT" column="tiers_id_client" />
			<field name="NOM_CLIENT" column="tiers_nom_client" />
			<field name="ID_PARENT" column="tiers_id_parent" splitBy="," />
			<field name="ID_PAYS_CLIENT" column="tiers_id_pays_client" />
			<field name="ID_SEGMENT" column="tiers_id_segment" />
			<field name="ID_SALE" column="tiers_id_sale" />
			<field name="NOM_SALE" column="tiers_nom_sale" />

			
			<field name="U_ID_CLIENT" column="tiers_id_client" />
			<field name="U_NOM_CLIENT" column="tiers_nom_client" />
			<field name="U_ID_PARENT" column="tiers_id_parent" splitBy="," />
			<field name="U_ID_PAYS_CLIENT" column="tiers_id_pays_client" />
			<field name="U_ID_SEGMENT" column="tiers_id_segment" />
			<field name="U_ID_SALE" column="tiers_id_sale" />
			<field name="U_NOM_SALE" column="tiers_nom_sale" />

			<entity name="tiers_contrat" dataSource="myvialtis"
cacheKey="contrat_id_client"
				cacheLookup="tiers.tiers_id_client" processor="CachedSqlEntityProcessor"
				query="select * from bi_solr_contrat">

				<field name="ID_PARTENAIRE" column="contrat_id_partenaire" />
				<field name="NOM_PARTENAIRE" column="contrat_nom_partenaire" />
				<field name="TYPE_PARTENAIRE" column="contrat_type_partenaire" />
				<field name="ID_TYPE_SERVICE" column="contrat_id_type_service" />
				<field name="ID_FILIALE" column="contrat_id_filiale" />
				<field name="NOM_FILIALE" column="contrat_nom_filiale" />
				<field name="COMPTE_WEB_POSSIBLE" column="contrat_compte_web_possible"
/>
				<field name="ID_CONTRAT" column="contrat_id_contrat" />
				<field name="ID_STATUT_CONTRAT" column="contrat_id_statut_contrat" />
				<field name="NOM_PRODUIT" column="contrat_nom_produit" />
				<field name="ID_BENEFICIAIRE_CONSO"
column="contrat_id_beneficiaire_conso" />
				<field name="ID_BENEFICIAIRE_HONO" column="contrat_id_beneficiaire_hono"
/>
				<field name="ID_PAYEUR_CONSO" column="contrat_id_payeur_conso" />
				<field name="ID_PAYEUR_HONO" column="contrat_id_payeur_hono" />
				<field name="REF_CONTRAT_TVA" column="contrat_ref_contrat_tva" />
				<field name="PAYS_DEPOT_TVA" column="contrat_pays_depot_tva" />

			</entity>

it missed the mapping for docType and ID.
I catch this project. this said me that it works. but i think it's not true
because i don't underdand if it missed that???



--
View this message in context: http://lucene.472066.n3.nabble.com/org-apache-solr-common-SolrException-Document-is-missing-mandatory-uniqueKey-field-id-tp4237067p4237588.html
Sent from the Solr - User mailing list archive at Nabble.com.

Mime
View raw message