lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "James Dyer (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (LUCENE-4215) DataImportHandler not using its own interface
Date Wed, 11 Jul 2012 21:08:35 GMT

    [ https://issues.apache.org/jira/browse/LUCENE-4215?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13411996#comment-13411996
] 

James Dyer commented on LUCENE-4215:
------------------------------------

roman,

See the constructor for oas.handler.dataimport.DocBuilder.  If you specify the "writerImpl"
parameter, it overrides the passed-in SolrWriter with your DIHWriter instance.  The current
situation is a poor one and what you propose is definitely an improvement!  However, I think
you can override SolrWriter with your own impl without code changes.  See SOLR-2943 for a
full example.
                
> DataImportHandler not using its own interface
> ---------------------------------------------
>
>                 Key: LUCENE-4215
>                 URL: https://issues.apache.org/jira/browse/LUCENE-4215
>             Project: Lucene - Java
>          Issue Type: Improvement
>          Components: core/other
>    Affects Versions: 4.0
>            Reporter: roman
>              Labels: DIH
>             Fix For: 4.0
>
>         Attachments: dateimporthandler-use-generic-type.patch
>
>
> It is hard to extend DIH (e.g. to provide our own writers). DIH accepts only the SolrWriter
instances, despite they implement the DIHWriter interace.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org


Mime
View raw message