FWIW: there has been a lot of dicsussion around how wildcards should work 
in various params that involve field names in the past: search the 
archives for "glob" or "globbing" and you'll find several.

: That makes sense, since hl.fl probably can get away with calculating in the
: writer, and not as part of the core. However, I really need wildcard (or
: globbing) support for field lists as part of the common query parameter "fl".
: Again, if someone can just point me to where the Solr core is using the
: contents of the fl param, I am happy to implement this, if only locally for my
: purposes.

It's complicated... the SolrQueryResponse has a setReturnFields method 
where the RequestHandler can specify which fields should be returned and 
the ResponseWRiters use that when outputing DocList (writer fetches the 
Document by internal id) ... but with the addition of distributed 
searching now there are also SolrDocumentList objects and whoever puts the 
SolrDocumentList in the response decides which fields to populate.

if you grep the code base for CommonParams.FL and setReturnFields you 
should find all of the various touch points.

if you're really interested in pursuing this, some brainstorming on
how to deal with field globs in a very general and robust way were 
discussed about a year ago, and i posted notes on the wiki...

   http://wiki.apache.org/solr/FieldAliasesAndGlobsInParams

...but no one has actively pursued it enough to figure out what the real 
ramifications/benefits could be.



-Hoss

Reply via email to