You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by "Jed Glazner (JIRA)" <ji...@apache.org> on 2012/06/26 18:06:44 UTC

[jira] [Created] (SOLR-3578) Add field aliasing for filter queries

Jed Glazner created SOLR-3578:
---------------------------------

             Summary: Add field aliasing for filter queries
                 Key: SOLR-3578
                 URL: https://issues.apache.org/jira/browse/SOLR-3578
             Project: Solr
          Issue Type: Improvement
          Components: query parsers
            Reporter: Jed Glazner


Now that aliasing is into the 4x branch (see https://issues.apache.org/jira/browse/SOLR-1205)  I tried to use it with filter queries but it didn't work. Well I could get them to work using local params, however I think that the query parsers should be able to detect the parameterized versions as well.

For example the query:
../select?q=a:value&hl=a:field_a&f.a.qf=field_a&defType=dismax&fq={!dismax fl=b:field_b f.c.qf=b}value2

should be re-written as:
../select?q=a:value&hl=a:field_a&f.a.qf=field_a&defType=dismax&fq=b:value&fq.fl=b:field_b&fq.f.b.qf=field_b&qf.defType=dismax


--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
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


[jira] [Commented] (SOLR-3578) Add field aliasing for filter queries

Posted by "Hoss Man (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/SOLR-3578?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13401563#comment-13401563 ] 

Hoss Man commented on SOLR-3578:
--------------------------------

i'm having trouble understanding the goal of this request -- largely because things like the "fl" param don't make any sense in the context of local params (it doesn't affect query parsing at all -- it's a response formating param)

Could you provide a more details example of what you'd like to see work?  ideally in the form of a unit test, but at a minimum something that people could try using the example data (ie: show a URL with fields used in the example, and then show an example of what results you'd like to see using the docs in the example)
                
> Add field aliasing for filter queries
> -------------------------------------
>
>                 Key: SOLR-3578
>                 URL: https://issues.apache.org/jira/browse/SOLR-3578
>             Project: Solr
>          Issue Type: Improvement
>          Components: query parsers
>            Reporter: Jed Glazner
>
> Now that aliasing is into the 4x branch (see https://issues.apache.org/jira/browse/SOLR-1205)  I tried to use it with filter queries but it didn't work. Well I could get them to work using local params, however I think that the query parsers should be able to detect the parameterized versions as well.
> For example the query:
> ../select?q=a:value&hl=a:field_a&f.a.qf=field_a&defType=dismax&fq={!dismax fl=b:field_b f.b.qf=field_b}value2
> should be re-written as:
> ../select?q=a:value&hl=a:field_a&f.a.qf=field_a&defType=dismax&fq=b:value&fq.fl=b:field_b&fq.f.b.qf=field_b&qf.defType=dismax

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
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


[jira] [Updated] (SOLR-3578) Add field aliasing for filter queries

Posted by "Jed Glazner (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/SOLR-3578?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Jed Glazner updated SOLR-3578:
------------------------------

    Description: 
Now that aliasing is into the 4x branch (see https://issues.apache.org/jira/browse/SOLR-1205)  I tried to use it with filter queries but it didn't work. Well I could get them to work using local params, however I think that the query parsers should be able to detect the parameterized versions as well.

For example the query:
../select?q=a:value&hl=a:field_a&f.a.qf=field_a&defType=dismax&fq={!dismax fl=b:field_b f.b.qf=field_b}value2

should be re-written as:
../select?q=a:value&hl=a:field_a&f.a.qf=field_a&defType=dismax&fq=b:value&fq.fl=b:field_b&fq.f.b.qf=field_b&qf.defType=dismax


  was:
Now that aliasing is into the 4x branch (see https://issues.apache.org/jira/browse/SOLR-1205)  I tried to use it with filter queries but it didn't work. Well I could get them to work using local params, however I think that the query parsers should be able to detect the parameterized versions as well.

For example the query:
../select?q=a:value&hl=a:field_a&f.a.qf=field_a&defType=dismax&fq={!dismax fl=b:field_b f.c.qf=b}value2

should be re-written as:
../select?q=a:value&hl=a:field_a&f.a.qf=field_a&defType=dismax&fq=b:value&fq.fl=b:field_b&fq.f.b.qf=field_b&qf.defType=dismax


    
> Add field aliasing for filter queries
> -------------------------------------
>
>                 Key: SOLR-3578
>                 URL: https://issues.apache.org/jira/browse/SOLR-3578
>             Project: Solr
>          Issue Type: Improvement
>          Components: query parsers
>            Reporter: Jed Glazner
>
> Now that aliasing is into the 4x branch (see https://issues.apache.org/jira/browse/SOLR-1205)  I tried to use it with filter queries but it didn't work. Well I could get them to work using local params, however I think that the query parsers should be able to detect the parameterized versions as well.
> For example the query:
> ../select?q=a:value&hl=a:field_a&f.a.qf=field_a&defType=dismax&fq={!dismax fl=b:field_b f.b.qf=field_b}value2
> should be re-written as:
> ../select?q=a:value&hl=a:field_a&f.a.qf=field_a&defType=dismax&fq=b:value&fq.fl=b:field_b&fq.f.b.qf=field_b&qf.defType=dismax

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
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