[ 
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: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to