[ https://issues.apache.org/jira/browse/LUCENE-7286?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Adrien Grand updated LUCENE-7286: --------------------------------- Attachment: LUCENE-7286.patch Here is a patch. I think this bug may hit many users so I would like to include it in 6.1. > WeightedSpanTermExtractor.extract() does not recognize SynonymQuery > ------------------------------------------------------------------- > > Key: LUCENE-7286 > URL: https://issues.apache.org/jira/browse/LUCENE-7286 > Project: Lucene - Core > Issue Type: Bug > Components: modules/highlighter > Affects Versions: 6.0 > Reporter: Piotr > Attachments: LUCENE-7286.patch > > Original Estimate: 48h > Remaining Estimate: 48h > > Short description: > In WeightedSpanTermExtractor.extract(...) method there is a long list of > supported Queries. There is no SynonymQuery which leads to > extractUnknownQuery() that does nothing. It would be really nice to have > SynonymQuery covered as well. > Long description: > I'm trying to highlight an external text using a Highlighter. The query is > created by QueryParser. If the created query is simple it works like a charm. > The problem is when parsed query contains SynonymQuery -- it happens, when > stemmer returns multiple stems, which is not uncommon for Polish language. > Btw. this is my first jira issue. -- This message was sent by Atlassian JIRA (v6.3.4#6332) --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@lucene.apache.org For additional commands, e-mail: dev-h...@lucene.apache.org