You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by "David Smiley (JIRA)" <ji...@apache.org> on 2018/07/17 20:28:00 UTC

[jira] [Commented] (LUCENE-8407) Add SpanTermQuery.getTermStates()

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

David Smiley commented on LUCENE-8407:
--------------------------------------

This would go right below getTerm.  I copy pasted this from TermQuery, changed to reference different field name.
{code:java}
  /** Returns the {@link TermStates} passed to the constructor, or null if it was not passed.
   *
   * @lucene.experimental */
  public TermStates getTermStates() {
    return termStates;
  }
{code}

> Add SpanTermQuery.getTermStates()
> ---------------------------------
>
>                 Key: LUCENE-8407
>                 URL: https://issues.apache.org/jira/browse/LUCENE-8407
>             Project: Lucene - Core
>          Issue Type: Improvement
>            Reporter: David Smiley
>            Assignee: David Smiley
>            Priority: Minor
>
> Adding a getTermStates() to the TermStates in a SpanTermQuery would be useful, just like we have similarly for a TermQuery – LUCENE-8379.  It would be useful for LUCENE-6513 to avoid a needless inner ScoreTerm class when a SpanTermQuery would suffice.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

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