Uploaded image for project: 'Solr'
  1. Solr
  2. SOLR-9526

data_driven configs defaults to "strings" for unmapped fields, makes most fields containing "textual content" unsearchable, breaks tutorial examples

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

    Details

      Description

      James Pritchett pointed out on the solr-user list that this sample query from the quick start tutorial matched no docs (even though the tutorial text says "The above request returns only one document")...

      http://localhost:8983/solr/gettingstarted/select?wt=json&indent=true&q=name:foundation

      The root problem seems to be that the add-unknown-fields-to-the-schema chain in data_driven_schema_configs is configured with...

      <str name="defaultFieldType">strings</str>
      

      ...and the "strings" type uses StrField and is not tokenized.


      Original thread: http://mail-archives.apache.org/mod_mbox/lucene-solr-user/201609.mbox/%3CCAC-n2zRPsspfnK43AGeCspchc5b-0FF25xLfnzogYuVyg2dWbw@mail.gmail.com%3E

        Attachments

        1. SOLR-9526.patch
          16 kB
          Jan Høydahl
        2. SOLR-9526.patch
          26 kB
          Jan Høydahl
        3. SOLR-9526.patch
          26 kB
          Jan Høydahl
        4. SOLR-9526.patch
          27 kB
          Jan Høydahl
        5. SOLR-9526.patch
          27 kB
          Steven Rowe
        6. SOLR-9526.patch
          41 kB
          Jan Høydahl
        7. SOLR-9526.patch
          45 kB
          Jan Høydahl

        Issue Links

          Activity

            People

            • Assignee:
              janhoy Jan Høydahl
              Reporter:
              hossman Chris M. Hostetter

              Dates

              • Created:
                Updated:
                Resolved:

                Time Tracking

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0h
                0h
                Logged:
                Time Spent - 10m
                10m

                  Issue deployment