Two issues bundled into one question:
Why does haystack auto_query send two requests to solr and escapes the : character ?
I've set up haystack as it is written in the manual, everything running OK, but whenever I tail my solr log I see two requests if coming from haystack (for one query) and one request if coming from the admin page:
So I query:
title:ong
From Haystack I get:
Jul 12, 2012 2:37:30 PM org.apache.solr.core.SolrCore execute
INFO: [collection1] webapp=/solr path=/select/ params={spellcheck=true&sort=cand+desc&fl=*+score&start=0&q=(title\:ong)&spellcheck.count=1&spellcheck.collate=true&wt=json&fq=django_ct:(ads.model1+OR+ads.model2+OR+ads.model3)&rows=1} hits=0 status=0 QTime=21
Jul 12, 2012 2:37:30 PM org.apache.solr.core.SolrCore execute
INFO: [collection1] webapp=/solr path=/select/ params={spellcheck=true&sort=cand+desc&fl=*+score&start=0&q=(title\:ong)&spellcheck.count=1&spellcheck.collate=true&wt=json&fq=django_ct:(ads.model1+OR+ads.model2+OR+ads.model3)&rows=0} hits=0 status=0 QTime=23
while from the admin section:
Jul 12, 2012 2:42:35 PM org.apache.solr.core.SolrCore execute
INFO: [collection1] webapp=/solr path=/select params={spellcheck=true&indent=true&q=title:ong&wt=json} hits=2 status=0 QTime=12
Extra parameters exist in haystack requests, that is understandable.
As you can see the q parameter is the same.
Well almost the same: anyone can tell why haystack auto_query escapes the : character and sends out two requests?
I believe that, because : is escaped, Solr doesnt return "ong" just from the field "title" and searches for title\:ong as a string, of course it doesnt return anything.