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

Missing fields and dynamicfields from schema/fieldtypes API

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 8.10
    • documentation
    • None

    Description

      SOLR-8736 removed some schema API GET functionality in Solr 6.0, but it was added back by SOLR-8992 in Solr 6.0.1

      I think some of the functionality is still missing:

      schema/fieldtypes and schema/fieldtypes/typename does not give the following information anymore:

      • fields: the fields with the given field type
      • dynamicFields: the dynamic fields with the given field type

      Here is a sample output for text_general:

      {
        "responseHeader":{
          "status":0,
          "QTime":1},
        "fieldType":{
          "name":"text_general",
          "class":"solr.TextField",
          "positionIncrementGap":"100",
          "multiValued":true,
          "indexAnalyzer":{
            "tokenizer":{
              "class":"solr.StandardTokenizerFactory"},
            "filters":[{
                "class":"solr.StopFilterFactory",
                "words":"stopwords.txt",
                "ignoreCase":"true"},
              {
                "class":"solr.LowerCaseFilterFactory"}]},
          "queryAnalyzer":{
            "tokenizer":{
              "class":"solr.StandardTokenizerFactory"},
            "filters":[{
                "class":"solr.StopFilterFactory",
                "words":"stopwords.txt",
                "ignoreCase":"true"},
              {
                "class":"solr.SynonymGraphFilterFactory",
                "expand":"true",
                "ignoreCase":"true",
                "synonyms":"synonyms.txt"},
              {
                "class":"solr.LowerCaseFilterFactory"}]}}}  

      I tested it using Solr 7.4 and Solr 8.4

      Attachments

        Issue Links

          Activity

            People

              ctargett Cassandra Targett
              asalamon74 Andras Salamon
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

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