Uploaded image for project: 'Lucene - Core'
  1. Lucene - Core
  2. LUCENE-9283

DelimitedBoostTokenFilter can fail testRandomChains

Attach filesAttach ScreenshotVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: main (9.0), 8.6
    • Component/s: None
    • Labels:
      None
    • Lucene Fields:
      New

      Description

      DelimitedBoostTokenFilter expects tokens of the form `token` or `token|number` and throws a NumberFormatException if the `number` part can't be parsed. This can cause test failures when we build random chains and throw random data through them.

      We can either exclude DelimiteBoostTokenFilter when building a random analyzer, or add a flag to ignore badly-formed tokens. I lean towards doing the former, as I don't really want to make leniency the default here.

        Attachments

          Activity

            People

            • Assignee:
              romseygeek Alan Woodward
              Reporter:
              romseygeek Alan Woodward

              Dates

              • Created:
                Updated:
                Resolved:

                Issue deployment