You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by "David Smiley (JIRA)" <ji...@apache.org> on 2016/12/05 15:01:07 UTC
[jira] [Commented] (LUCENE-7575) UnifiedHighlighter: add
requireFieldMatch=false support
[ https://issues.apache.org/jira/browse/LUCENE-7575?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15722472#comment-15722472 ]
David Smiley commented on LUCENE-7575:
--------------------------------------
This is looking really good now Jim! I like this Predicate<String> approach.
UH:
* Maybe change UH.extractTerms to simply be a Set (HashSet) since we needn't pay any sorting expense up front any longer.
* couldn't defaultFieldMatcher be initialized to non-null to match the same field? Then getFieldMatcher() would simply return it.
PhraseHelper:
* the comment on the fieldName field about being non-null isn't true anymore; in fact it's required. Perhaps add Objects.requireNonNull(...) in c'tor if you want.
* I can see why you changed FieldFilteringTermHashSet to extend TreeSet. But you now need to modify the javadocs & class name accordingly; perhaps removing the implementation detail like this
Nice tests. That's it.
> UnifiedHighlighter: add requireFieldMatch=false support
> -------------------------------------------------------
>
> Key: LUCENE-7575
> URL: https://issues.apache.org/jira/browse/LUCENE-7575
> Project: Lucene - Core
> Issue Type: Improvement
> Components: modules/highlighter
> Reporter: David Smiley
> Assignee: David Smiley
> Attachments: LUCENE-7575.patch, LUCENE-7575.patch
>
>
> The UnifiedHighlighter (like the PostingsHighlighter) only supports highlighting queries for the same fields that are being highlighted. The original Highlighter and FVH support loosening this, AKA requireFieldMatch=false.
--
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