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

Jakob Furrer edited comment on SOLR-6152 at 7/1/20, 11:34 PM:
--------------------------------------------------------------

A friendly front-end colleague has helped me to develop a patch for the 
required improvements and the issues that have been mentioned in the linked 
ticket SOLR-6404.

The attached patch changes the behavior of the admin UI as follows:
 - all form elements can no be preset/prefilled using the corresponding query 
parameters
 - presetting of check-boxes works correctly now
 - prefilling and manually adding multi-values is now possible for the 
parameter 'fq'
 - the button "Execute Query" generates an URL to re-open the query form (i.e. 
the present page with its current values prefilled in the form)
 - as before, the button "Execute Query" generates an URL to the specified 
handler (typically "select") to execute the search
 - both the URL to the query for and the URL to the rest result can now be 
copied to the clipboard using the respective button
 - the patch has been created on Master, merge to 8.x and 7.x should work as 
well

Please confirm and commit.


was (Author: jafurrer):
A friendly front-end colleague has helped me to develop a patch for the 
required improvements and the issues that have been mentioned in the linked 
ticket SOLR-6404.

The attached patch changes the behavior of the admin UI as follows:
- all form elements can no be preset/prefilled using the corresponding query 
parameters
- presetting of check-boxes works correctly now
- prefilling and manually adding multi-values is now possible for the parameter 
'fq'
- the button "Execute Query" generates an URL to re-open the query form (i.e. 
the present page with its current values prefilled in the form)
- as before, the button "Execute Query" generates an URL to the specified 
handler ([^SOLR-6152.patch]!copy_url_to_clipboard.png! typically "select") to 
execute the search
- both the URL to the query for and the URL to the rest result can now be 
copied to the clipboard using the respective button
- the patch has been created on Master, merge to 8.x and 7.x should work as well

Please confirm and commit.

> Pre-populating values into search parameters on the query page of solr admin
> ----------------------------------------------------------------------------
>
>                 Key: SOLR-6152
>                 URL: https://issues.apache.org/jira/browse/SOLR-6152
>             Project: Solr
>          Issue Type: Improvement
>          Components: Admin UI
>    Affects Versions: 4.3.1
>            Reporter: Dmitry Kan
>            Priority: Major
>         Attachments: SOLR-6152.patch, copy_url_to_clipboard.png, 
> prefilling_and_extending_the_multivalue_parameter_fq.png, 
> prepoluate_query_parameters_query_page.bmp
>
>
> In some use cases, it is highly desirable to be able to pre-populate the 
> query page of solr admin with specific values.
> In particular use case of mine, the solr admin user must pass a date range 
> value without which the query would fail.
> It isn't easy to remember the value format for non-solr experts, so I would 
> like to have a way of hooking that value "example" into the query page.
> See the screenshot attached, where I have inserted the fq parameter with date 
> range into the Raw Query Parameters.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscr...@lucene.apache.org
For additional commands, e-mail: issues-h...@lucene.apache.org

Reply via email to