[ 
https://issues.apache.org/jira/browse/SOLR-2444?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Ryan McKinley updated SOLR-2444:
--------------------------------

    Summary: Update fl syntax to support: pseudo fields, AS, transformers, and 
wildcards  (was: support wildcards in fl parameter, improve DocTransformer 
parsing)

I just started a new branch and implemented some of the things we have 
suggested.  Check:
https://svn.apache.org/repos/asf/lucene/dev/branches/pseudo/

This implements:

h3. SQL style AS
{code}
?fl=id,field AS display
{code}
will display 'field' with the name 'display'


h3. Pseudo Fields

You can define pseudo fields with  ?hl.pseudo=key:value

Any key that matches something in the fl param gets replaced with value.  For 
example:
{code}
?fl=id,price&fl.pseudo=price:real_price_field
{code}
is the same as
{code}
?fl=id,real_price_field AS price
{code}


h3. Transformer Syntax [name]

The previous underscore syntax is replaced with brackets.
{code}
?fl=id,[value:10] AS 10
{code}

Hopefully this will make it more clear that it is calling a function.










> Update fl syntax to support: pseudo fields, AS, transformers, and wildcards
> ---------------------------------------------------------------------------
>
>                 Key: SOLR-2444
>                 URL: https://issues.apache.org/jira/browse/SOLR-2444
>             Project: Solr
>          Issue Type: New Feature
>            Reporter: Ryan McKinley
>         Attachments: SOLR-2444-fl-parsing.patch, SOLR-2444-fl-parsing.patch
>
>
> The ReturnFields parsing needs to be improved.  It should also support 
> wildcards

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@lucene.apache.org
For additional commands, e-mail: dev-h...@lucene.apache.org

Reply via email to