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

Martijn van Groningen commented on LUCENE-7928:
-----------------------------------------------

I agree that these queries should only be constructed via their factory 
methods, that is why the constructors are package protected. I like these two 
classes to be public to access the getters, which is useful for query 
processing. (which is what the percolator and luwak both do)

> Change LatLonPointDistanceQuery and LatLonPointInPolygonQuery visibility to 
> public
> ----------------------------------------------------------------------------------
>
>                 Key: LUCENE-7928
>                 URL: https://issues.apache.org/jira/browse/LUCENE-7928
>             Project: Lucene - Core
>          Issue Type: Improvement
>            Reporter: Martijn van Groningen
>            Priority: Minor
>             Fix For: master (8.0), 7.1
>
>         Attachments: LUCENE_7928.patch
>
>
> Changing the visibility of these classes to public can be useful for 
> accessing the getters (which are already public) to allow custom post 
> processing of the query instances.



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

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

Reply via email to