lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Erick Erickson (Commented) (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (SOLR-2701) Expose IndexWriter.commit(Map<String,String> commitUserData) to solr
Date Mon, 07 Nov 2011 16:10:53 GMT

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

Erick Erickson commented on SOLR-2701:
--------------------------------------

I'd like to move this forward, so I'm soliciting a bit of advice about how to proceed.

I'm interested here in getting this into SolrJ, it's not clear to me that this belongs in,
say, an XML input file (and csv and json and...) since we have a nice clean document add format
and trying to put index meta-data in there seems like a bad thing to do.

Anyway, if we do go down the SolrJ route, it seems like SolrServer needs either two more commit
methods that take a Map<String, String> or something like a new addUserData method,
the latter seems cleaner.

Then we'd have to do something with UpdateRequest to get the use-data passed over to the Solr
server and from there pass it on through to the writer.commit.

Mostly, I'm looking for guidance on whether this is a reasonable approach or if it's wrong-headed
from the start, in which case I'll take any suggestions gladly.. Haven't started to code anything
yet, so changes in the approach are really cheap....

Eks Dev: Do you want to push this forward and/or work on it together?
                
> Expose IndexWriter.commit(Map<String,String> commitUserData) to solr 
> ---------------------------------------------------------------------
>
>                 Key: SOLR-2701
>                 URL: https://issues.apache.org/jira/browse/SOLR-2701
>             Project: Solr
>          Issue Type: New Feature
>          Components: update
>    Affects Versions: 4.0
>            Reporter: Eks Dev
>            Assignee: Erick Erickson
>            Priority: Minor
>              Labels: commit, update
>         Attachments: SOLR-2701.patch
>
>   Original Estimate: 8h
>  Remaining Estimate: 8h
>
> At the moment, there is no feature that enables associating user information to the commit
point.
>  
> Lucene supports this possibility and it should be exposed to solr as well, probably via
beforeCommit Listener (analogous to prepareCommit in Lucene).
> Most likely home for this Map to live is UpdateHandler.
> Example use case would be an atomic tracking of sequence numbers or timestamps for incremental
updates.

--
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