:                         <int name="Deloitte &amp;amp; Touche">4114</int>
:                         <int name="Ernst &amp;amp; Young">1379</int>

A-Ha! ... this is where the details relaly matter.  unless your email 
program did something funky with the XML you sent, what this tells me is 
that you don't actually have the values "Deloitte & Touche" or "Ernst & 
Young" in your index.  The literal values in your index are "Deloitte 
&amp; Touche" and "Ernst &amp; Young" .. most likely you are "double XML 
escaping" your source data before indexing.  if i'm right, then when you 
use the ruby output format, you'll see...
  ...
  'facet_fields'=>{
        'cat'=>[
           'Deloitte &amp; Touche',4114
           'Ernst &amp; Young',1379
  ...

If you change your fq to...

        fq=company_facet:%22Deloitte+%26amp%3B+Touche%22

...so that it is an URL escaping of the value you get after un-XML 
escaping the response (just once!) you should start seeing the correct 
results.  but your long term solution is to stop double escaping your data 
before indexing it.



-Hoss

Reply via email to