[
https://issues.apache.org/jira/browse/SOLR-3724?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15549004#comment-15549004
]
David Smiley commented on SOLR-3724:
------------------------------------
I wonder if this is still a problem? I'm surprised the FVH would have a
deficiency this significant.
FYI there will be a Solr adapter coming for the new UnifiedHighlighter added in
LUCENE-7438 -- I can't promise exactly when. It doesn't have the problem
described here, and it's quite fast (see the benchmarks on that issue). The
main limitation at present is that hl.requireFieldMatch=true is only supported.
(same for PostingsHighlighter)
> No highlighting for phrases with stop words when FVH is used
> ------------------------------------------------------------
>
> Key: SOLR-3724
> URL: https://issues.apache.org/jira/browse/SOLR-3724
> Project: Solr
> Issue Type: Bug
> Components: highlighter
> Affects Versions: 3.6.1
> Reporter: Igor Motov
>
> To reproduce:
> - Index text "foo and bar" into the field "message" with the following schema
> :
> {code:xml}
> <schema name="example" version="1.5">
> <types>
> <!-- ... -->
> <fieldType name="my_text_general" class="solr.TextField"
> positionIncrementGap="100">
> <analyzer type="index">
> <tokenizer class="solr.StandardTokenizerFactory"/>
> <filter class="solr.StopFilterFactory" ignoreCase="true"
> words="lang/stopwords_en.txt" enablePositionIncrements="true"/>
> <filter class="solr.LowerCaseFilterFactory"/>
> </analyzer>
> <analyzer type="query">
> <tokenizer class="solr.StandardTokenizerFactory"/>
> <filter class="solr.StopFilterFactory" ignoreCase="true"
> words="lang/stopwords_en.txt" enablePositionIncrements="true"/>
> <filter class="solr.SynonymFilterFactory" synonyms="synonyms.txt"
> ignoreCase="true" expand="true"/>
> <filter class="solr.LowerCaseFilterFactory"/>
> </analyzer>
> </fieldType>
> <!-- ... -->
> </types>
> <fields>
> <!-- ... -->
> <field name="message" type="my_text_general" indexed="true" stored="true"
> required="true" termVectors="true" termPositions="true" termOffsets="true"/>
> <!-- ... -->
> </fields>
> <!-- ... -->
> </schema>
> {code}
> - Search for the {{message:"foo and bar"}} with highlighting enabled and
> {{hl.useFastVectorHighlighter=true}}
> - The text is not highlighted
> Standard highlighter works fine. If I set {{enablePositionIncrements=false}}
> in the analyzer, FVH starts to highlight the entire phrase. You can find
> complete schema and test data files that I used to reproduce this issue here:
> https://gist.github.com/3279879
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]