Ahmet Arslan wrote:
> 
> 
> 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.
> 
Done. In my analysis page I see the following: 

Index Analyzer
org.apache.solr.analysis.KeywordTokenizerFactory {}
term position   1
term text       100
term type       word
source start,end        0,3
payload         

org.apache.solr.analysis.SynonymFilterFactory
{synonyms=db_apartment_types_en.txt, expand=true, ignoreCase=false}
term position   1
term text       One Bedroom Apartment
                        100

term type       word
word
source start,end        0,3
0,3
payload         

Query Analyzer
org.apache.solr.analysis.KeywordTokenizerFactory {}
term position   1
term text       100
term type       word
source start,end        0,3
payload         

org.apache.solr.analysis.SynonymFilterFactory
{synonyms=db_apartment_types_en.txt, expand=true, ignoreCase=false}
term position   1
term text       One Bedroom Apartment
                        100
term type       word
word
source start,end        0,3
0,3
payload



Ahmet Arslan wrote:
> 
>   
> Also in analysis.jsp page the entry "One Bedroom Apartment" was single
> token or three tokens?
> 
> 
It is a single token.

<str> response result still shows 100, not  "One Bedroom Apartment". 

Thanks!












  



-- 
View this message in context: 
http://old.nabble.com/Expanding-synonyms-for-both-facets-and-response-results-tp26912229p26919385.html
Sent from the Solr - User mailing list archive at Nabble.com.

Reply via email to