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

StructureRequestHandler - allowing client to discover all fields in the index

    XMLWordPrintableJSON

Details

    • New Feature
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • None
    • 1.2
    • search
    • None

    Description

      This request handler returns all fields and their type. In Ruby format (&wt=ruby) the results, for the example index, look like this currently:

      {'responseHeader'=>

      {'status'=>0,'QTime'=>1}

      ,'fields'=>{'cat'=>'text_ws','includes'=>'text','id'=>'string','text'=>'text','price'=>'sfloat','features'=>'text','manu_exact'=>'string','manu'=>'text','name'=>'text','sku'=>'textTight','inStock'=>'boolean','popularity'=>'sint','weight'=>'sfloat'}}

      A client wanting to introspect Solr could combine the actual fields and their types with parsing of schema.xml to glean a lot and dynamically configure based on what is inside an index. Should more information per field be returned, or is simply the type name sufficient? What else is desirable for this request handler?

      Attachments

        1. structure_handler.patch
          4 kB
          Erik Hatcher

        Activity

          People

            ehatcher Erik Hatcher
            ehatcher Erik Hatcher
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: