You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by "Ryan McKinley (JIRA)" <ji...@apache.org> on 2011/04/01 23:13:05 UTC

[jira] [Updated] (SOLR-2444) Update fl syntax to support: pseudo fields, AS, transformers, and wildcards

     [ 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-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org