You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by "ASF subversion and git services (JIRA)" <ji...@apache.org> on 2016/10/04 08:52:20 UTC
[jira] [Commented] (LUCENE-7453) Change naming of variables/apis
from docid to docnum
[ https://issues.apache.org/jira/browse/LUCENE-7453?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15544805#comment-15544805 ]
ASF subversion and git services commented on LUCENE-7453:
---------------------------------------------------------
Commit 32446e9205679fb94b247f0fa2aa97ecd54a49ff in lucene-solr's branch refs/heads/master from [~jpountz]
[ https://git-wip-us.apache.org/repos/asf?p=lucene-solr.git;h=32446e9 ]
LUCENE-7453: Create a Lucene70Codec.
> Change naming of variables/apis from docid to docnum
> ----------------------------------------------------
>
> Key: LUCENE-7453
> URL: https://issues.apache.org/jira/browse/LUCENE-7453
> Project: Lucene - Core
> Issue Type: Improvement
> Reporter: Ryan Ernst
>
> In SOLR-9528 a suggestion was made to change {{docid}} to {{docnum}}. The reasoning for this is most notably that {{docid}} has a connotation about a persistent unique identifier (eg like {{_id}} in elasticsearch or {{id}} in solr), while {{docid}} in lucene is currently some local to a segment, and not comparable directly across segments.
> When I first started working on Lucene, I had this same confusion. {{docnum}} is a much better name for this transient, segment local identifier for a doc. Regardless of what solr wants to do in their api (eg keeping _docid_), I think we should switch the lucene apis and variable names to use docnum.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org