Dynamic fields - names having special characters like ">" "<"

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Dynamic fields - names having special characters like ">" "<"

Rajinimaski
Hi all,

  We have few *dynamic field names*  coming with special character. ex: *
<first/>_str*. Solr throws error:* org.apache.solr.common.SolrException:
Unexpected '<'*
I followed this link
<http://lucene.472066.n3.nabble.com/Search-on-dynamic-fields-which-contains-spaces-special-characters-td472100.html>for
escaping  - *</first//>_str *didn't work.


Is there anyway to handle such cases?



Awaiting for reply


Thanks & Regards
Rajani
Reply | Threaded
Open this post in threaded view
|

Re: Dynamic fields - names having special characters like ">" "<"

Rajinimaski
Hi all,


  I found a solution myself -  to replace -  < >   with &lt; and &gt;


Thanks & Regards
Rajani



On Wed, Feb 6, 2013 at 3:50 PM, Rajani Maski <[hidden email]> wrote:

> Hi all,
>
>   We have few *dynamic field names*  coming with special character. ex: *
> <first/>_str*. Solr throws error:* org.apache.solr.common.SolrException:
> Unexpected '<'*
> I followed this link
> <http://lucene.472066.n3.nabble.com/Search-on-dynamic-fields-which-contains-spaces-special-characters-td472100.html>for
> escaping  - *</first//>_str *didn't work.
>
>
> Is there anyway to handle such cases?
>
>
>
> Awaiting for reply
>
>
> Thanks & Regards
> Rajani
>