Maybe you don't use special characters such as '?', '&', ... in your query, but other guys do.
If someone want to search for '? & the mysterians', it's impossible if you don't encode it. As the 'admin' interface must be used by anyone, the query has to be url-encoded. Franck Le mercredi 21 mars 2012 à 18:41 -0500, Aaron Couch a écrit : > Thanks again for the follow-up. > > You are correct that '%3A' and ':' are equivalent. However if I type > anything else, for example if I want to change the query parser to Lucene, > the responseHeader returns an empty set. > > If I type in the /admin screen: > > t_FIELD_NAME:TEST&defType=lucene > > I get: > > select/?q=t_title%3Aweb%26defType%3Dlucene > > The '&' and '%26' are not equivalent as well as the '=' and '%3D'. > > I know I could easily just type the queries correctly in the URL, but I'm > giving a training where I'd like to show how the queries generated in our > application can be tested and it would be great to be able to use the > /admin screen or have a good reason why we can't. > > Thanks again, > > -Aaron > > On Wed, Mar 21, 2012 at 1:52 PM, fbrisbart <fbrisb...@bestofmedia.com>wrote: > > > I'm not sure to understand your problem. > > The 2 urls : > > .../select/?q=t_FIELD_NAME%3ATEST > > and .../select/?q=t_FIELD_NAME:TEST > > > > are strictly the same. > > > > Look in the 'responseHeader', you'll see that query received is > > t_FIELD_NAME:TEST for both urls. > > > > > > Franck > > > > > > Le mercredi 21 mars 2012 à 12:36 -0500, Aaron Couch a écrit : > > > hi Franck; > > > > > > Thank you for your response. I'm not sure you understand my issue > > however. > > > I have dismax on by default so am able to use query fields. > > > > > > My problem is not in the queries themselves, but when they are input from > > > the '/admin' screen they are url-encoded. > > > > > > If I take your suggestion and type in t_FIELD_NAME:TEST the ''/admin > > screen > > > I get redirected to the following: > > > > > > select/?q=t_FIELD_NAME%3ATEST > > > > > > instead of: > > > > > > select/?q=t_FIELD_NAME:TEST > > > > > > Is there a setting I should be aware of to stop the /admin screen from > > > url-encoding strings? Or is there a setting to allow solr to accept > > > url-encoded strings? Is this issue fixed in later versions after 1.4? > > > > > > Thanks, > > > > > > -Aaron > > > > > > > > > On Wed, Mar 21, 2012 at 11:26 AM, fbrisbart <fbrisb...@bestofmedia.com > > >wrote: > > > > > > > Hi, > > > > > > > > for your example query 'TEST&qf=t_FIELD_NAME ', > > > > you can simply query : > > > > t_FIELD_NAME:TEST > > > > > > > > If you really want to use the 'qf' parameter, it is only available for > > > > dismax queries ( http://wiki.apache.org/solr/DisMaxQParserPlugin ). > > Your > > > > query becomes: > > > > {!dismax qf=t_FIELD_NAME}TEST > > > > > > > > Have a look at the wiki ( > > > > http://wiki.apache.org/solr/CommonQueryParameters > > > > ) for the syntax of your queries. > > > > > > > > Franck > > > > > > > > > > > > -- > > > > View this message in context: > > > > > > http://lucene.472066.n3.nabble.com/url-encoded-strings-from-Admin-Query-String-search-tp3840910p3846003.html > > > > Sent from the Solr - User mailing list archive at Nabble.com. > > > > > > > > > >