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

Mark Bennett commented on SOLR-4702:
------------------------------------

Hi Erik,

Thanks.

Two options we might consider:
1: I didn't see a for loop, and in some cases there could be multiple 
collations?
2: When debugging, seeing the raw suggestions, prior to collation filtering, 
can be nice.  Though I'm not sure if that's a good fit for these templates or 
not.  If we come back and add more options, maybe a 
"showRawSpellingSuggestions=true|FALSE" might be nice.
                
> Velocity templates not rendering spellcheck suggestions correctly
> -----------------------------------------------------------------
>
>                 Key: SOLR-4702
>                 URL: https://issues.apache.org/jira/browse/SOLR-4702
>             Project: Solr
>          Issue Type: Bug
>          Components: contrib - Velocity
>    Affects Versions: 4.2
>            Reporter: Mark Bennett
>            Assignee: Erik Hatcher
>         Attachments: SOLR-4702.patch, SOLR-4702.patch, SOLR-4702.patch
>
>
> The spellcheck links, AKA "Did you mean", aren't rendered correctly.
> Instead of just having the corrected words, they have some .toString 
> gibberish because the object being serialized is too high up in the tree.
> This breaks both the link text displayed to the user, and the href used for 
> the anchor tag.
> Example:
> Search for "electronicss OR monitor" and you get:
> Did you mean {collationQuery=electronics OR 
> monitor,hits=14,misspellingsAndCorrections={electronicss=electronics,monitor=monitor}}?
> But you should just see:
> Did you mean electronics OR monitor?   (with hyperlinked "electronics OR 
> monitor")
> The actual query submitted by those links is similarly broken.  Possibly the 
> templates were developed before collation was added and/or enabled by default.
> To see this bug at all with the example configs and docs you'll need to have 
> applied SOLR-4680 or SOLR-4681 against 4.2 or trunk.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

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

Reply via email to