Ah... you are probably not "encoding" the & and % in your URL, so they are being eaten when the URL is parsed. Use % followed by the 2-digit hex ASCII character code. & should be %26 and % should be %25.

-- Jack Krupansky

-----Original Message----- From: Gustav
Sent: Thursday, September 20, 2012 10:13 AM
To: solr-user@lucene.apache.org
Subject: Re: "&" char in querystring

Hello Jack,
My the fieldtype is configured as following:

   <fieldType class="solr.TextField" name="exact_search"
positionIncrementGap="100">
     <analyzer>
       <tokenizer class="solr.KeywordTokenizerFactory"/>
       <filter class="solr.ISOLatin1AccentFilterFactory"/>
       <filter class="solr.LowerCaseFilterFactory"/>
     </analyzer>
   </fieldType>

What other filter could i use to preserve the "&" char?



Another problem that came up, is when i search for ?q="0,5%" it gives an
error:
HTTP Status 400 - missing query string

Probably because of the "%" char, is there any way to escape it?




--
View this message in context: http://lucene.472066.n3.nabble.com/char-in-querystring-tp4009174p4009191.html Sent from the Solr - User mailing list archive at Nabble.com.

Reply via email to