Project

General

Profile

« Previous | Next » 

Revision 30114

created parameter for DNET_RESULT field for InputDocumentMapper Factory

View differences:

SolrDocumentMapperFactory.java
25 25
	 */
26 26
	private InputDocumentFactory documentFactory;
27 27

  
28
	protected static final String DNETRESULT = "result";
29

  
28 30
	/**
29 31
	 * {@inheritDoc}
30 32
	 *
......
43 45
			public IndexDocument apply(final String doc) {
44 46
				SolrIndexDocument indexDocument = new SolrIndexDocument(schema, dsId);
45 47
				try {
46
					indexDocument.setContent(documentFactory.parseDocument(version, doc, dsId));
48
					indexDocument.setContent(documentFactory.parseDocument(version, doc, dsId, DNETRESULT));
47 49
				} catch (XMLStreamException e) {
48 50
					return indexDocument.setMarked();
49 51
				}

Also available in: Unified diff