lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Adrien Grand (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (LUCENE-6415) TermsQuery.extractTerms should not throw an UOE
Date Fri, 10 Apr 2015 13:09:13 GMT

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

Adrien Grand commented on LUCENE-6415:
--------------------------------------

Uwe: I was also wondering that it might make sense to move this method to Weight so that we
only have to implement it for core queries and not those that always rewrite to a different
query? (extractTerms documentation states it only makes sense on rewritten queries)

Robert: The issue is that it fails term extraction for the whole query even if this query
is only used for filtering. Maybe we could make extractTerms a no-op on TermsQuery and then
it would behave just like when this query was still only a filter?

> TermsQuery.extractTerms should not throw an UOE
> -----------------------------------------------
>
>                 Key: LUCENE-6415
>                 URL: https://issues.apache.org/jira/browse/LUCENE-6415
>             Project: Lucene - Core
>          Issue Type: Bug
>    Affects Versions: 5.1
>            Reporter: Adrien Grand
>            Assignee: Adrien Grand
>            Priority: Minor
>
> TermsQuery inherits the default impl of extractTerms which throws an UnsupportedOperationException.



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

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


Mime
View raw message