Revision 62647
Added by Alessia Bardi over 1 year ago
modules/dnet-index-solr-common/trunk/src/main/java/eu/dnetlib/functionality/index/solr/feed/InputDocumentFactory.java | ||
---|---|---|
18 | 18 |
|
19 | 19 |
public static final String INDEX_FIELD_PREFIX = "__"; |
20 | 20 |
|
21 |
public static final String DS_VERSION = INDEX_FIELD_PREFIX + "dsversion"; |
|
22 |
|
|
23 |
public static final String DS_ID = INDEX_FIELD_PREFIX + "dsid"; |
|
24 |
|
|
25 | 21 |
public static final String RESULT = "result"; |
26 | 22 |
|
27 | 23 |
public static final String INDEX_RESULT = INDEX_FIELD_PREFIX + RESULT; |
modules/dnet-index-solr-common/trunk/src/main/java/eu/dnetlib/functionality/index/solr/feed/StreamingInputDocumentFactory.java | ||
---|---|---|
112 | 112 |
} |
113 | 113 |
} |
114 | 114 |
|
115 |
if (version != null) { |
|
116 |
indexDocument.addField(DS_VERSION, version); |
|
117 |
} |
|
118 | 115 |
|
119 |
if (dsId != null) { |
|
120 |
indexDocument.addField(DS_ID, dsId); |
|
121 |
} |
|
122 |
|
|
123 | 116 |
if (!indexDocument.containsKey(INDEX_RECORD_ID)) { |
124 | 117 |
indexDocument.clear(); |
125 | 118 |
System.err.println("missing indexrecord id:\n" + inputDocument); |
Also available in: Unified diff
#8552 remove unused fields to make the direct indexixng API work