You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by "Robert Muir (Created) (JIRA)" <ji...@apache.org> on 2012/04/08 16:30:19 UTC
[jira] [Created] (LUCENE-3967) nuke
AtomicReader.termDocsEnum(termState) and termPositionsEnum(termState)
nuke AtomicReader.termDocsEnum(termState) and termPositionsEnum(termState)
--------------------------------------------------------------------------
Key: LUCENE-3967
URL: https://issues.apache.org/jira/browse/LUCENE-3967
Project: Lucene - Java
Issue Type: Task
Reporter: Robert Muir
These are simply sugar methods anyway, and so expert that I don't think we need sugar here at all.
If someone wants to get DocsEnum via a saved TermState they can just use TermsEnum!
But having these public in AtomicReader i think is pretty confusing and overwhelming.
In fact, nothing in Lucene even uses these methods, except a sole assert statement in PhraseQuery,
which I think can be written more clearly anyway:
{noformat}
// PhraseQuery on a field that did not index
// positions.
if (postingsEnum == null) {
- assert reader.termDocsEnum(liveDocs, t.field(), t.bytes(), state, false) != null: "termstate found but no term exists in reader";
+ assert te.seekExact(t.bytes(), false) : "termstate found but no term exists in reader";
{noformat}
--
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
[jira] [Commented] (LUCENE-3967) nuke
AtomicReader.termDocsEnum(termState) and termPositionsEnum(termState)
Posted by "Michael McCandless (Commented) (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/LUCENE-3967?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13249570#comment-13249570 ]
Michael McCandless commented on LUCENE-3967:
--------------------------------------------
+1
> nuke AtomicReader.termDocsEnum(termState) and termPositionsEnum(termState)
> --------------------------------------------------------------------------
>
> Key: LUCENE-3967
> URL: https://issues.apache.org/jira/browse/LUCENE-3967
> Project: Lucene - Java
> Issue Type: Task
> Reporter: Robert Muir
> Attachments: LUCENE-3967.patch
>
>
> These are simply sugar methods anyway, and so expert that I don't think we need sugar here at all.
> If someone wants to get DocsEnum via a saved TermState they can just use TermsEnum!
> But having these public in AtomicReader i think is pretty confusing and overwhelming.
> In fact, nothing in Lucene even uses these methods, except a sole assert statement in PhraseQuery,
> which I think can be written more clearly anyway:
> {noformat}
> // PhraseQuery on a field that did not index
> // positions.
> if (postingsEnum == null) {
> - assert reader.termDocsEnum(liveDocs, t.field(), t.bytes(), state, false) != null: "termstate found but no term exists in reader";
> + assert te.seekExact(t.bytes(), false) : "termstate found but no term exists in reader";
> {noformat}
--
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
[jira] [Resolved] (LUCENE-3967) nuke
AtomicReader.termDocsEnum(termState) and termPositionsEnum(termState)
Posted by "Robert Muir (Resolved) (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/LUCENE-3967?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Robert Muir resolved LUCENE-3967.
---------------------------------
Resolution: Fixed
Fix Version/s: 4.0
> nuke AtomicReader.termDocsEnum(termState) and termPositionsEnum(termState)
> --------------------------------------------------------------------------
>
> Key: LUCENE-3967
> URL: https://issues.apache.org/jira/browse/LUCENE-3967
> Project: Lucene - Java
> Issue Type: Task
> Reporter: Robert Muir
> Fix For: 4.0
>
> Attachments: LUCENE-3967.patch
>
>
> These are simply sugar methods anyway, and so expert that I don't think we need sugar here at all.
> If someone wants to get DocsEnum via a saved TermState they can just use TermsEnum!
> But having these public in AtomicReader i think is pretty confusing and overwhelming.
> In fact, nothing in Lucene even uses these methods, except a sole assert statement in PhraseQuery,
> which I think can be written more clearly anyway:
> {noformat}
> // PhraseQuery on a field that did not index
> // positions.
> if (postingsEnum == null) {
> - assert reader.termDocsEnum(liveDocs, t.field(), t.bytes(), state, false) != null: "termstate found but no term exists in reader";
> + assert te.seekExact(t.bytes(), false) : "termstate found but no term exists in reader";
> {noformat}
--
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
[jira] [Commented] (LUCENE-3967) nuke
AtomicReader.termDocsEnum(termState) and termPositionsEnum(termState)
Posted by "Uwe Schindler (Commented) (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/LUCENE-3967?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13249580#comment-13249580 ]
Uwe Schindler commented on LUCENE-3967:
---------------------------------------
die, die, die!
> nuke AtomicReader.termDocsEnum(termState) and termPositionsEnum(termState)
> --------------------------------------------------------------------------
>
> Key: LUCENE-3967
> URL: https://issues.apache.org/jira/browse/LUCENE-3967
> Project: Lucene - Java
> Issue Type: Task
> Reporter: Robert Muir
> Attachments: LUCENE-3967.patch
>
>
> These are simply sugar methods anyway, and so expert that I don't think we need sugar here at all.
> If someone wants to get DocsEnum via a saved TermState they can just use TermsEnum!
> But having these public in AtomicReader i think is pretty confusing and overwhelming.
> In fact, nothing in Lucene even uses these methods, except a sole assert statement in PhraseQuery,
> which I think can be written more clearly anyway:
> {noformat}
> // PhraseQuery on a field that did not index
> // positions.
> if (postingsEnum == null) {
> - assert reader.termDocsEnum(liveDocs, t.field(), t.bytes(), state, false) != null: "termstate found but no term exists in reader";
> + assert te.seekExact(t.bytes(), false) : "termstate found but no term exists in reader";
> {noformat}
--
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
[jira] [Updated] (LUCENE-3967) nuke
AtomicReader.termDocsEnum(termState) and termPositionsEnum(termState)
Posted by "Robert Muir (Updated) (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/LUCENE-3967?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Robert Muir updated LUCENE-3967:
--------------------------------
Attachment: LUCENE-3967.patch
> nuke AtomicReader.termDocsEnum(termState) and termPositionsEnum(termState)
> --------------------------------------------------------------------------
>
> Key: LUCENE-3967
> URL: https://issues.apache.org/jira/browse/LUCENE-3967
> Project: Lucene - Java
> Issue Type: Task
> Reporter: Robert Muir
> Attachments: LUCENE-3967.patch
>
>
> These are simply sugar methods anyway, and so expert that I don't think we need sugar here at all.
> If someone wants to get DocsEnum via a saved TermState they can just use TermsEnum!
> But having these public in AtomicReader i think is pretty confusing and overwhelming.
> In fact, nothing in Lucene even uses these methods, except a sole assert statement in PhraseQuery,
> which I think can be written more clearly anyway:
> {noformat}
> // PhraseQuery on a field that did not index
> // positions.
> if (postingsEnum == null) {
> - assert reader.termDocsEnum(liveDocs, t.field(), t.bytes(), state, false) != null: "termstate found but no term exists in reader";
> + assert te.seekExact(t.bytes(), false) : "termstate found but no term exists in reader";
> {noformat}
--
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