Uploaded image for project: 'Lucene.Net'
  1. Lucene.Net
  2. LUCENENET-531

Incorrect parsing of when resetting a prefix tree node ending in LEAF_BYTE

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Critical
    • Resolution: Cannot Reproduce
    • Lucene.Net 3.0.3
    • None
    • Lucene.Net Contrib
    • None
    • Lucene.Net.Contrib.Spatial

    Description

      When a prefix tree node is constructed, there is an explicit check to test if the last char is LEAF_BYTE and its presence is handled appropriately. If the node is reused via the node.Reset method there is no such check which leads to issues if presented with a token ending in LEAF_BYTE. This manifests as "Unexpected char: +" in method QuadPrefixTree.QuadCell.MakeShape.
      I think this happens when building a cell from e.g a rectangle shape query parameter where the cell level is < grid depth.

      Attachments

        Activity

          People

            Unassigned Unassigned
            jaundice John Diss
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: