[ 
https://issues.apache.org/jira/browse/SOLR-116?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12466247
 ] 

Yonik Seeley commented on SOLR-116:
-----------------------------------

Looks good, I like the fieldnames as the keys.  The only change I might make is 
to make it extensible by returning a map as the value.

Instead of:
  'id'=>'string'
It could be
  'id'=>{type=>'string'}

And then other info could optionally go in there:
  'id'=>{type=>'string', multiValued=>'false', 'indexed'=>'true', 
'stored'=>'true', 'defaultValue'=>'...'}

Hmmm, and what are the aesthetics of the XML?

<lst name="fields">
  <lst name="id>  <str name="type">string</str>  </lst>
  <lst name="text">...

Not bad...
 

> StructureRequestHandler - allowing client to discover all fields in the index
> -----------------------------------------------------------------------------
>
>                 Key: SOLR-116
>                 URL: https://issues.apache.org/jira/browse/SOLR-116
>             Project: Solr
>          Issue Type: New Feature
>          Components: search
>            Reporter: Erik Hatcher
>         Assigned To: Erik Hatcher
>            Priority: Minor
>         Attachments: structure_handler.patch
>
>
> 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?

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
https://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Reply via email to