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

StringFields name is unintuitive and not helpful

    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

      There's a huge difference between TextField and StringField, StringField screws up scoring and bypasses your Analyzer.

      (see java-user thread "Custom Analyzer Not Called When Indexing" as an example.)

      The name we use here is vital, otherwise people will get bad results.

      I think we should rename StringField to MatchOnlyField.

        Attachments

        1. LUCENE-4369.patch
          175 kB
          Robert Muir

          Issue Links

            Activity

              People

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

                Dates

                • Created:
                  Updated: