You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@lucene.apache.org by "Juraj Jurčo (Jira)" <ji...@apache.org> on 2020/10/07 13:31:00 UTC
[jira] [Updated] (LUCENE-9568) FuzzyTermEnums sets negative boost
for fuzzy search & highlight
[ https://issues.apache.org/jira/browse/LUCENE-9568?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Juraj Jurčo updated LUCENE-9568:
--------------------------------
Description:
*Description*
When user indexes a word with an apostrophe and constructs a fuzzy query for highlighter, it throws an exception with set negative boost for a query.
*Repro Steps*
# Index a text with apostrophe. E.g. doesn't
# Parse a fuzzy query e.g.: se~, se~2, se~3
# Try to highlight a text with apostrophe
# The exception is thrown (for details see attached test test with repro steps)
*Actual Result*
{{java.lang.IllegalArgumentException: boost must be a positive float, got -1.0}}
*Expected Result*
* No exception.
* Highlighting marks are inserted into a text.
*Workaround*
- not known.
was:
*Description*
When user indexes a word with an apostrophe and constructs a fuzzy query for highlighter, it throws an exception with set negative boost for a query.
*Repro Steps*
# Index a text with apostrophe. E.g. doesn't
# Parse a fuzzy query e.g.: se~, se~2, se~3
# Try to highlight a text with apostrophe
# The exception is thrown (for details see attached test cest with repro steps)
*Actual Result*
{{java.lang.IllegalArgumentException: boost must be a positive float, got -1.0}}
*Expected Result*
* No exception.
* Highlighting marks are inserted into a text.
*Workaround*
- not known.
> FuzzyTermEnums sets negative boost for fuzzy search & highlight
> ---------------------------------------------------------------
>
> Key: LUCENE-9568
> URL: https://issues.apache.org/jira/browse/LUCENE-9568
> Project: Lucene - Core
> Issue Type: Bug
> Components: modules/highlighter
> Affects Versions: 8.5.1
> Reporter: Juraj Jurčo
> Priority: Minor
> Labels: highlighting, newbie
> Attachments: FindSqlHighlightTest.java
>
>
> *Description*
> When user indexes a word with an apostrophe and constructs a fuzzy query for highlighter, it throws an exception with set negative boost for a query.
> *Repro Steps*
> # Index a text with apostrophe. E.g. doesn't
> # Parse a fuzzy query e.g.: se~, se~2, se~3
> # Try to highlight a text with apostrophe
> # The exception is thrown (for details see attached test test with repro steps)
> *Actual Result*
> {{java.lang.IllegalArgumentException: boost must be a positive float, got -1.0}}
> *Expected Result*
> * No exception.
> * Highlighting marks are inserted into a text.
> *Workaround*
> - not known.
--
This message was sent by Atlassian Jira
(v8.3.4#803005)
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@lucene.apache.org
For additional commands, e-mail: issues-help@lucene.apache.org