[jira] Created: (SOLR-1587) Propagating fl=*,score to shards

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

[jira] Created: (SOLR-1587) Propagating fl=*,score to shards

Tim Allison (Jira)
Propagating fl=*,score to shards
--------------------------------

                 Key: SOLR-1587
                 URL: https://issues.apache.org/jira/browse/SOLR-1587
             Project: Solr
          Issue Type: Bug
          Components: search
    Affects Versions: 1.4
         Environment: any http solr server
            Reporter: Asaf Ary


When doing an HTTP request to a Solr Server using the shards parameter ("_shards_") the behavior of the response varies.

The following requests cause the entire document (all fields) to return in the response:
{quote}
    http://localhost:8180/solr/cpaCore/select/?q=*:*
    http://localhost:8180/solr/cpaCore/select/?q=*:*&fl=score
    http://localhost:8180/solr/cpaCore/select/?q=*:*&shards=shardLocation/solr/cpaCore
{quote}

The following request causes only the fields "id" and "score" to return in the response:
{quote}
    http://localhost:8180/solr/cpaCore/select/?q=*:*&fl=score&shards=shardLocation/solr/cpaCore
{quote}

I don't know if this is by design but it does provide for some inconsistent behavior, as shard requests behave differently than regular requests.

--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply | Threaded
Open this post in threaded view
|

[jira] Updated: (SOLR-1587) Propagating fl=*,score to shards

Tim Allison (Jira)

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

Yonik Seeley updated SOLR-1587:
-------------------------------

    Attachment: SOLR-1587.patch

Attaching patch + test that treats "score" like "*,score" for distributed since that's what was done in the past with non-distributed.

> Propagating fl=*,score to shards
> --------------------------------
>
>                 Key: SOLR-1587
>                 URL: https://issues.apache.org/jira/browse/SOLR-1587
>             Project: Solr
>          Issue Type: Bug
>          Components: search
>    Affects Versions: 1.4
>         Environment: any http solr server
>            Reporter: Asaf Ary
>         Attachments: SOLR-1587.patch
>
>
> When doing an HTTP request to a Solr Server using the shards parameter ("_shards_") the behavior of the response varies.
> The following requests cause the entire document (all fields) to return in the response:
> {quote}
>     http://localhost:8180/solr/cpaCore/select/?q=*:*
>     http://localhost:8180/solr/cpaCore/select/?q=*:*&fl=score
>     http://localhost:8180/solr/cpaCore/select/?q=*:*&shards=shardLocation/solr/cpaCore
> {quote}
> The following request causes only the fields "id" and "score" to return in the response:
> {quote}
>     http://localhost:8180/solr/cpaCore/select/?q=*:*&fl=score&shards=shardLocation/solr/cpaCore
> {quote}
> I don't know if this is by design but it does provide for some inconsistent behavior, as shard requests behave differently than regular requests.

--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply | Threaded
Open this post in threaded view
|

[jira] Resolved: (SOLR-1587) Propagating fl=*,score to shards

Tim Allison (Jira)
In reply to this post by Tim Allison (Jira)

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

Yonik Seeley resolved SOLR-1587.
--------------------------------

       Resolution: Fixed
    Fix Version/s: 1.5

committed.

> Propagating fl=*,score to shards
> --------------------------------
>
>                 Key: SOLR-1587
>                 URL: https://issues.apache.org/jira/browse/SOLR-1587
>             Project: Solr
>          Issue Type: Bug
>          Components: search
>    Affects Versions: 1.4
>         Environment: any http solr server
>            Reporter: Asaf Ary
>             Fix For: 1.5
>
>         Attachments: SOLR-1587.patch
>
>
> When doing an HTTP request to a Solr Server using the shards parameter ("_shards_") the behavior of the response varies.
> The following requests cause the entire document (all fields) to return in the response:
> {quote}
>     http://localhost:8180/solr/cpaCore/select/?q=*:*
>     http://localhost:8180/solr/cpaCore/select/?q=*:*&fl=score
>     http://localhost:8180/solr/cpaCore/select/?q=*:*&shards=shardLocation/solr/cpaCore
> {quote}
> The following request causes only the fields "id" and "score" to return in the response:
> {quote}
>     http://localhost:8180/solr/cpaCore/select/?q=*:*&fl=score&shards=shardLocation/solr/cpaCore
> {quote}
> I don't know if this is by design but it does provide for some inconsistent behavior, as shard requests behave differently than regular requests.

--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.