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

Steve Molloy commented on SOLR-5205:
------------------------------------

On top of only addressing the id part of the query, this patch may have 
undesired effects on queries that are not distributed and queries using the 
MoreLikeThisHandler. Basically, original issue is because distributed queries 
use the string representation of the query to send to shards, that string 
representation cannot be parsed as-is because characters are not escaped. I'm 
posting a patch that changes the toString behaviour for term queries to produce 
parsable output so it can be used in distributed without changing the actual 
values in the query object.

> MoreLikeThis doesn't escape shard queries
> -----------------------------------------
>
>                 Key: SOLR-5205
>                 URL: https://issues.apache.org/jira/browse/SOLR-5205
>             Project: Solr
>          Issue Type: Bug
>          Components: MoreLikeThis
>    Affects Versions: 4.4
>            Reporter: Markus Jelsma
>             Fix For: 4.6
>
>         Attachments: SOLR-5205-trunk.patch, SOLR-5205.patch
>
>
> MoreLikeThis does not support Lucene special characters as ID in distributed 
> search. ID's containing special characters such as URL's need to be escaped 
> in the first place. They are then unescaped and get sent to shards in an 
> unescaped form, causing the org.apache.solr.search.SyntaxError exception.



--
This message was sent by Atlassian JIRA
(v6.1#6144)

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

Reply via email to