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

Mark Miller commented on LUCENE-1929:
-------------------------------------

Yeah - eventually (as in when getTerm() is removed), the Highlighter was going 
to have to deal with that anyway. Deprecated methods should still work though - 
so whether return null from getTerm is right or wrong, I dunno.

But thats the issue - except for TermRangeQuery, the Highlighter looks for the 
Field by calling getTerm and asking for the field - made the exception for 
TermRangeQuery, but not NumericRangeQuery - so it throw a nullpointer 
exception. Easy to sidestep in Lucene, more of a pain in Solr (as the plan is 
to release with 2.9.0)

> Highlighter doesn't support NumericQuery
> ----------------------------------------
>
>                 Key: LUCENE-1929
>                 URL: https://issues.apache.org/jira/browse/LUCENE-1929
>             Project: Lucene - Java
>          Issue Type: Bug
>          Components: contrib/highlighter
>    Affects Versions: 2.9
>            Reporter: Mark Miller
>            Assignee: Mark Miller
>
> Sucks. Will throw a NullPointer exception. 

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


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

Reply via email to