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

FieldType.setTokenized shoudl be true by default

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 4.0-ALPHA
    • Fix Version/s: 4.0-BETA, 6.0
    • Component/s: None
    • Labels:
      None
    • Lucene Fields:
      New

      Description

      This is really confusing, see LUCENE-4176 where a user hit this.

      The example code from the user there reads:

      FieldType fieldType = new FieldType();
      fieldType.setIndexed(true);
      fieldType.setStored(true);
      

      Its really trappy that this does not invoke the analyzer: because historically we did this unless you specified NOT_ANALYZED.

      So i think fieldType.setTokenized(true) should be the default: things like StringField can turn it off.

        Attachments

          Activity

            People

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

              Dates

              • Created:
                Updated:
                Resolved: