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

Steven Broadbridge commented on SOLR-698:
-----------------------------------------

To answer Lars Kothoff's question:
Suppose you have an "advanced search" form with range queries defined by pairs 
of input fields and multiple query fields with "any word", "all words" and 
"exact phrase" selectors. Suppose further that you cannot, are not allowed to, 
and/or don't want to use JavaScript to assemble "q" on the client side. Then 
you would create a custom SearchComponent to assemble the query string in 
prepare() and call ResponseBuilder#setQueryString (process() will be a noop). 
The QueryComponent down the chain will do the search with the specified query 
instead of looking for it in "q". SpellCheckComponent should do the same. And 
now it does!


> SpellCheckComponent should use the queryString set in the ResponseBuilder
> -------------------------------------------------------------------------
>
>                 Key: SOLR-698
>                 URL: https://issues.apache.org/jira/browse/SOLR-698
>             Project: Solr
>          Issue Type: Improvement
>          Components: spellchecker
>    Affects Versions: 1.3
>            Reporter: Steven Broadbridge
>            Assignee: Shalin Shekhar Mangar
>            Priority: Minor
>             Fix For: 1.3
>
>         Attachments: SOLR-698.patch
>
>
> SpellCheckComponent should check if a previous component has set the 
> queryString property on ResponseBuilder before using the "q" parameter.
> This will allow it to be used with query components besides QueryComponent.

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

Reply via email to