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

Yonik Seeley commented on LUCENE-4575:
--------------------------------------

bq. I don't think though that it's trivial to support. Currently the user can 
pass any Map, but IndexReader returns in practice a HashMap 
(DataInput.readStringStringMap initializes a HashMap). 

If a user cared about order, then they would pass a LinkedHashMap.  Then the 
only thing that would need to change is DataInput.readStringStringMap: 
s/HashMap/LinkedHashMap.

bq. it's not really related to how the map is set.

It is... if you make a copy of the map and we want to preserve order, it's new 
LinkedHashMap instead of HashMap.

It's a minor enough point I don't think it does deserve it's own issue.  I 
don't personally care about preserving order - but I did think it was worth at 
least bringing up.
                
> Allow IndexWriter to commit, even just commitData
> -------------------------------------------------
>
>                 Key: LUCENE-4575
>                 URL: https://issues.apache.org/jira/browse/LUCENE-4575
>             Project: Lucene - Core
>          Issue Type: Improvement
>          Components: core/index
>            Reporter: Shai Erera
>            Priority: Minor
>         Attachments: LUCENE-4575.patch
>
>
> Spinoff from here 
> http://lucene.472066.n3.nabble.com/commit-with-only-commitData-td4022155.html.
> In some cases, it is valuable to be able to commit changes to the index, even 
> if the changes are just commitData. Such data is sometimes used by 
> applications to register in the index some global application 
> information/state.
> The proposal is:
> * Add a setCommitData() API and separate it from commit() and prepareCommit() 
> (simplify their API)
> * When that API is called, flip on the dirty/changes bit, so that this gets 
> committed even if no other changes were made to the index.
> I will work on a patch a post.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

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

Reply via email to