I have a weird problem. I'm querying a Solr 5.3 instance with Django 
through Scorched. It all works great as far as I don't ask an exact-match 
query. In other words,


q=something something else

returns exactly the same result as:


q="something something else"

The culprit, as far as I can see, is the actual query which Django throws 
at Solr. In fact, for the second case this is:


q=\"something\+something\+else\"

So, in other words, the " character is escaped. Am I right? How do I tell 
Solr that when I query something between double quotes I want an exact 
match?


In the Solr admin webpage it all works well, i.e. if I search for 
"something something else" I get the correct result.


I'm not sure this is a Scorched/Sunburnt problem or not. Does it have 
something to do with filters/tokenizers (e.g. 
solr.MappingCharFilterFactory)?


Thanks

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/77272146-99cb-4a23-8fe4-294eefc9ea2b%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to