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

remove or fix IndexWriter.tryDeleteDocument

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Open
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: None
    • Labels:
      None
    • Lucene Fields:
      New

      Description

      This method is causing bugs in tests, I think its a trap.

      I don't think people understand the semantics of it, and i don't like that its difficult for it to return false in tests

      So its unlikely to return false in tests, only in production. Broken just like java 7 string hashing.

      I think we should either remove it, rename it, fix the javadocs let IndexWriter create a random and intentionally return false from this method say 1% of the time to make it less trappy, something.

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              rcmuir Robert Muir
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated: