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

Adrien Grand commented on LUCENE-7632:
--------------------------------------

The Term class often feels to me like an unnecessary wrapper. I just looked at 
the usage of this class 
(http://lucene.apache.org/core/6_3_0/core/org/apache/lucene/index/class-use/Term.html)
 and most times it seems to me that passing a String field and BytesRef term 
instead would make things simpler.

> Add some sugar constructors to TermQuery
> ----------------------------------------
>
>                 Key: LUCENE-7632
>                 URL: https://issues.apache.org/jira/browse/LUCENE-7632
>             Project: Lucene - Core
>          Issue Type: Improvement
>            Reporter: Alan Woodward
>            Assignee: Alan Woodward
>         Attachments: LUCENE-7632.patch
>
>
> TermQuery should have constructors that take a field and term, in addition to 
> the one taking a Term object.  This has been annoying me for about five years 
> now.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to