> Ok, I must be missing something very obvious. My > analysis.jsp page shows the > entry just fine: > > I enter: > Field (name): apt_type_en > Field value (index): 100 > Analyze > > I get > "Index Analyzer > 100 > One Bedroom Apartment" > > "One Bedroom Apartment" is the expected entry. > > However, for this query: > > http://localhost:8080/solrmn/hotels/select/?q=*:*&fl=apt_type_en&sort=&rows=10&start=0&rows=0&facet=true&facet.field=apt_type_en > > > > > <lst name="facet_counts"> > > <lst name="facet_queries" /> > > > > <lst name="facet_fields"> > > > > <lst > name="apt_type_en"> > > > <int name="One Bedroom > Apartment">2</int> > > </lst> > > </lst> > > <lst name="facet_dates" /> > > </lst> > >
Strange if you can see injected token "One Bedroom Apartmen" as well as original token "100" in the analysis.jsp you should see 100 in the <lst name="facet_fields"> <lst name="apt_type_en"> section. Can you disable HTTP caching by replacing <httpCaching lastModifiedFrom="openTime" etagSeed="Solr"> with <httpCaching never304="true"> in solrconfig.xml + restart tomcat and then hit this url? http://localhost:8080/solrmn/hotels/select/?q=*:*&fl=apt_type_en&rows=10&start=0&facet=true&facet.field=apt_type_en The order of comma separated synonym entries are not important since expand=true is used. Also in analysis.jsp page the entry "One Bedroom Apartment" was single token or three tokens?