[ https://issues.apache.org/jira/browse/SOLR-262?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Ryan McKinley updated SOLR-262: ------------------------------- Attachment: SOLR-262-SolrDocumentBuilder.patch I tried adding this to the SOLR-139 patch, but it makes more sense in this lot... 5. Add to SolrInputDocument public void setKeepDuplicateFieldValues( String name, boolean v ) This decides if the field value colleciton should be backed by a Set or List. To keep the API simple, I'm using LinkedHashSet for everything rather than adding another option to keep distinct values where order does not matter. > convert SolrInputDocument to Document and Document to SolrDocument > ------------------------------------------------------------------ > > Key: SOLR-262 > URL: https://issues.apache.org/jira/browse/SOLR-262 > Project: Solr > Issue Type: New Feature > Reporter: Ryan McKinley > Attachments: SOLR-262-SolrDocumentBuilder.patch, > SOLR-262-SolrDocumentBuilder.patch > > > This is all extracted from SOLR-193. > We need some way to convert between SolrDocuments and lucene Documents. This > patch: > 1. add to FieldType.java: > public Object toObject(Fieldable f) { } > 2. Add to DocumentBuilder: > public Document build( SolrInputDocument doc ) > 3. Add to IndexSchema: > public boolean isCopyFieldTarget( SchemaField f ) > 4. Add to DocumentBuilder: > public SolrDocument loadStoredFields( SolrDocument doc, Document luceneDoc > ) -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.