You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by "David Boychuck (JIRA)" <ji...@apache.org> on 2014/08/01 02:11:38 UTC

[jira] [Updated] (SOLR-6308) Remove filtered documents from elevated set

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

David Boychuck updated SOLR-6308:
---------------------------------

    Description: 
I would like to add a parameter to the Query Elevation Component. Something like showFiltered=false where any results that have been filtered from the result set with the fq parameter will no longer be elevated.

as an example if I had two documents returned in a query

{code}
id="A"
field_1="foo"

id="B"
field_1="bar"
{code}

I would want the following query to yield the shown results

{code}
/solr/elevate?q=*&fq=field_1:bar&elevate=true&elevateIds=A

id="B"
field_1="bar"
{code}

id A is removed from the results because it is not contained in the filtered results even though it is elevated. It would be nice if we could pass an optional parameter like showFiltered=false where any results that have been filtered from the result set with the fq parameter will no longer be elevated. 

  was:
I would like to add a parameter to the Query Elevation Component. Something like showFiltered=false where any results that have been filtered from the result set with the fq parameter will no longer be elevated.

as an example if I had two documents returned in a query

{code}
id="A"
field_1="foo"

id="B"
field_1="bar"
{code}

I would want the following query to yield the shown results

{code}
/solr/elevate?q=*&fq=field_1:bar&elevate=true&elevateIds=A

id="B"
field_1="bar"
{code}

id A is removed from the results because it is not contained in the filtered results even though it is elevated.


> Remove filtered documents from elevated set
> -------------------------------------------
>
>                 Key: SOLR-6308
>                 URL: https://issues.apache.org/jira/browse/SOLR-6308
>             Project: Solr
>          Issue Type: Improvement
>    Affects Versions: 4.9
>            Reporter: David Boychuck
>             Fix For: 4.10
>
>   Original Estimate: 8h
>  Remaining Estimate: 8h
>
> I would like to add a parameter to the Query Elevation Component. Something like showFiltered=false where any results that have been filtered from the result set with the fq parameter will no longer be elevated.
> as an example if I had two documents returned in a query
> {code}
> id="A"
> field_1="foo"
> id="B"
> field_1="bar"
> {code}
> I would want the following query to yield the shown results
> {code}
> /solr/elevate?q=*&fq=field_1:bar&elevate=true&elevateIds=A
> id="B"
> field_1="bar"
> {code}
> id A is removed from the results because it is not contained in the filtered results even though it is elevated. It would be nice if we could pass an optional parameter like showFiltered=false where any results that have been filtered from the result set with the fq parameter will no longer be elevated. 



--
This message was sent by Atlassian JIRA
(v6.2#6252)

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