[ 
https://issues.apache.org/jira/browse/SOLR-7963?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15279022#comment-15279022
 ] 

Mitchel Labonte edited comment on SOLR-7963 at 5/10/16 9:53 PM:
----------------------------------------------------------------

Hello [~arcadius],
Do you think it would be possible to use filter queries using the original 
Lucene index the document belongs to without having to copy the fields over in 
contexts.
I wonder if something like keeping the id of the document as a "context" could 
be used to do a lookup in the original index to see if it respects a specific 
filter query.

Cause for now, if filtering needs to be based on multiple fields, the only 
solution is to index all those fields in "contexts", with the field name as a 
prefix i.e. type_typeA, category_categoryB.
Also, functions like termfreq cannot be used.

All of this is very important for applications that use filter queries for 
entitlement.
I.e. if someone cannot see a document, they shouldn't see a suggestion that 
comes from this document either.


was (Author: mlabont):
Hello [~arcadius],
Do you think it would be possible to use filter queries using the original 
Lucene index the document belongs to without having to copy the fields over in 
contexts.
I wonder if something like keeping the id of the document as a "context" could 
be used to do a lookup in the original index to see if it respects a specific 
filter query.

Cause for now, if filtering needs to be based on multiple fields, the only 
solution is to index all those fields in "contexts", with the field name as a 
prefix i.e. type_typeA, category_categoryB.
Also, functions like termfreq cannot be used.

All of this is very important for applications that use filter queries for 
entitlement. i.e. if someone cannot see a document, they shouldn'd see a 
suggestion that comes from this document either.

> Suggester context filter query to accept local params query
> -----------------------------------------------------------
>
>                 Key: SOLR-7963
>                 URL: https://issues.apache.org/jira/browse/SOLR-7963
>             Project: Solr
>          Issue Type: Improvement
>          Components: Suggester
>    Affects Versions: 5.4
>            Reporter: Arcadius Ahouansou
>            Priority: Minor
>              Labels: suggester
>
> SOLR-7888 has introduced a new parameter for filtering suggester queries
> {code}suggest.cfq=ctx1 OR ctx2{code} 
> The implementation use the Solr {{StandardQueryParser}} for parsing the cfq 
> param.
> This card is to allow to pass in local param queries such as 
> {code}
> suggest.cfq={!terms f=contextx}ctx1,ctx2
> {code}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to