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

Matt Pearce commented on SOLR-11296:
------------------------------------

I came across this yesterday, and have hopefully found a fix.

This is an issue with how booleans are handled when being copied - the solution 
is either to add ng-true-value="'true'" to each of the checkboxes (so it comes 
through as a string when the Angular controller is processing it), or to put in 
a check for boolean properties in the copy function in the query.js controller. 
I've attached a patch which implements the second version.

[~elyograg] you would need to also modify the query.html file in partials to, 
for example:

{{    <input type="checkbox" ng-model="spellcheck['spellcheck.collate']" 
name="spellcheck.collate" id="spellcheck_collate" ng-value-true="'on'" 
ng-value-false="'off'">}}

> Spellcheck parameters not working in new UI
> -------------------------------------------
>
>                 Key: SOLR-11296
>                 URL: https://issues.apache.org/jira/browse/SOLR-11296
>             Project: Solr
>          Issue Type: Bug
>      Security Level: Public(Default Security Level. Issues are Public) 
>          Components: Admin UI
>    Affects Versions: 6.3, 6.6, 7.0
>            Reporter: Shawn Heisey
>            Priority: Minor
>              Labels: newdev
>         Attachments: SOLR-11296.patch
>
>
> When these spellcheck options are chosen in the query interface in the new 
> UI, they are not added to the query that gets executed:
> spellcheck.build
> spellcheck.reload
> spellcheck.onlyMorePopular
> spellcheck.extendedResults
> spellcheck.collate
> From what I could tell, the other spellcheck options *are* included in the 
> query when they are configured in the query interface.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

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

Reply via email to