Mutli Lengual Suggester Solr 4.8
I am trying create suggester handler using solr 4.8, everything work fine but when I try to get suggestion using different language Arabic, or Japanese for example I got result in mixed language, but I am trying to search only using Japanese, I got Arabic with that too. the following is my Schema.xml id and this is my SolrConfig 4.8 ${solr.core0.data.dir:} ${solr.core0.data.dir:} true explicit 10 id explicit edismax 10 full_name,job_tree, company, city, state, country, first_name, last_name, id full_name_suggest^60 full_name_ngram^100.0 job_suggest^30 job_ngram^50.0 full_name_edge^100.0 job_edge^50.0 true full_name f
Re: different fields for user-supplied phrases in edismax
explicit edismax 10 full_name,job_tree, company, city, state, country, first_name, last_name, id full_name_suggest^60 full_name_ngram^100.0 job_suggest^30 job_ngram^50.0 full_name_edge^100.0 job_edge^50.0 true full_name full_name asc full_name asc the configuration above let me search firstly by name, if there is no result it will go and make the search by job hopefully this help you, I would like to let you know that it does not work great if you have Japanese, Arabic, or Chinese. this is result for query to search for user whose name is alaa or work as developer http://localhost:9090/solr/people/suggest?q=alaa%20developer&wt=json&indent=true { "responseHeader":{ "status":0, "QTime":27, "params":{ "indent":"true", "q":"alaa developer", "wt":"json"}}, "grouped":{ "full_name":{ "matches":4, "groups":[{ "groupValue":"alaa", "doclist":{"numFound":1,"start":0,"docs":[ { "job_tree":"CTO(Chief Technology Officer) ", "last_name":"Abuzaghleh", "state":"California", "country":"United States", "city":"North Hollywood", "id":"a2757538-9f16-42d8-907a-199c11787d09", "company":"letspeer.com", "full_name":"Alaa Abuzaghleh", "first_name":"Alaa"}] }}, { "groupValue":"user1", "doclist":{"numFound":1,"start":0,"docs":[ { "job_tree":"Web Developer", "last_name":"user1", "state":"Amman", "country":"Jordan", "city":"Aljameaa", "id":"78bd8079-666f-4e09-ab4f-aed796040c93", "company":"BT-AT", "full_name":"user1 user1", "first_name":"user1"}] }}, { "groupValue":"user4", "doclist":{"numFound":1,"start":0,"docs":[ { "job_tree":"Mobile App Developer", "last_name":"user4", "state":"", "country":"", "city":"", "id":"9e50c5b1-49cc-444a-a752-8b8ebe04b6f6", "company":"Apple ", "full_name":"user4 user4", "first_name":"user4"}] }}, { "groupValue":"z3ra", "doclist":{"numFound":1,"start":0,"docs":[ { "job_tree":"", "last_name":"z3ra", "state":"", "country":"", "city":"", "id":"2a82735d-cce0-400e-826b-b78f6bb56115", "company":"", "full_name":"usAlaa z3ra", "first_name":"usAlaa"}] }}]}}} you can go to the multi lengaul issue in same place where you put your issue and look for schema configuration. -- View this message in context: http://lucene.472066.n3.nabble.com/different-fields-for-user-supplied-phrases-in-edismax-tp4173862p4173886.html Sent from the Solr - User mailing list archive at Nabble.com.
Multi Language Suggester Solr Issue
I am trying create suggester handler using solr 4.8, everything work fine but when I try to get suggestion using different language Arabic, or Japanese for example I got result in mixed language, but I am trying to search only using Japanese, I got Arabic with that too. the following is my Schema.xml id and this is my SolrConfig 4.8 ${solr.core0.data.dir:} ${solr.core0.data.dir:} true explicit 10 id explicit edismax 10 full_name,job_tree, company, city, state, country, first_name, last_name, id full_name_suggest^60 full_name_ngram^100.0 job_suggest^30 job_ngram^50.0 full_name_edge^100.0 job_edge^50.0 true full_name full_name asc full_name asc
Re: Multi Language Suggester Solr Issue
Thanks Eric for your comment, If I do suggest by Full_name I got good result look to this result set http://localhost:9090/solr/people/suggest?q=full_name%3A%D9%85%D8%B3%D8%B9%D9%88%D8%AF&wt=json&indent=true the result will be { "responseHeader":{ "status":0, "QTime":3, "params":{ "indent":"true", "q":"full_name:مسعود", "wt":"json"}}, "grouped":{ "full_name":{ "matches":1, "groups":[{ "groupValue":null, "doclist":{"numFound":1,"start":0,"docs":[ { "job_tree":"رسام كاريكاتور", "last_name":"النغش", "state":"Amman", "country":"Jordan", "city":"Amman", "id":"fa0a5f94-0497-49f6-9060-ec45c27c0d8e", "company":"شركة الفنون المتطورة", "full_name":"مسعود النغش", "first_name":"مسعود "}] }}]}}} which is correct result and this result for Russian name http://localhost:9090/solr/people/suggest?q=full_name%3A%D0%A0%D0%BE%D0%B1%D0%B8%D0%BD&rows=100&wt=json&indent=true { "responseHeader":{ "status":0, "QTime":2, "params":{ "indent":"true", "q":"full_name:Робин", "wt":"json", "rows":"100"}}, "grouped":{ "full_name":{ "matches":1, "groups":[{ "groupValue":"робин", "doclist":{"numFound":1,"start":0,"docs":[ { "job_tree":"менеджер по маркетингу", "last_name":"Робин", "state":"Moscow", "country":"Russian Federation", "city":"Moscow", "id":"71f0dc71-2b89-48d8-94bf-f3c7c063382e", "company":"ОЛЕГ масла", "full_name":"Олег Робин", "first_name":"Олег"}] }}]}}} which is also correct third result for Japanese name http://localhost:9090/solr/people/suggest?q=full_name%3A%E3%82%B7%E3%83%A3%E3%83%B3&rows=100&wt=json&indent=true { "responseHeader":{ "status":0, "QTime":2, "params":{ "indent":"true", "q":"full_name:シャン", "wt":"json", "rows":"100"}}, "grouped":{ "full_name":{ "matches":1, "groups":[{ "groupValue":"ね", "doclist":{"numFound":1,"start":0,"docs":[ { "job_tree":"システムアナリスト", "last_name":"シャン", "state":"Tokyo", "country":"Japan", "city":"Tokyo", "id":"4fdce27b-3a9b-4045-85f3-2d5087d97b50", "company":"日立", "full_name":"すね シャン", "first_name":"すね"}] }}]}}} the time I use full_name_ngram or full_name_suggest or full_name_edge I got the result from different language see bellow http://localhost:9090/solr/people/suggest?q=full_name_suggest%3A%D9%85%D8%B3%D8%B9%D9%88%D8%AF&wt=json&indent=true "responseHeader":{ "status":0, "QTime":3, "params":{ "indent":"true", "q":"full_name_suggest:مسعود", "wt":"json"}}, "grouped":{ "full_name":{ "matches":2, "groups":[{ "groupValue":null, "doclist":{"numFound":1,"start":0,"docs":[ { "job_tree":"رسام كاريكاتور", "last_name":"النغش", "state":"Amman", "country":"Jordan", "city":"Amman", "id":"fa0a5f94-0497-49f6-9060-ec45c27c0d8e", "company":"شركة الفنون المتطورة", "full_name":"مسعود النغش", "first_name":"مسعود "}] }}, { "groupValue":"робин", "doclist":{"numFound":1,"start":0,"docs":[ { "job_tree":"менеджер по маркетингу", "last_name":"Робин", "state":"Moscow", "country":"Russian Federation", "city":"Moscow", "id":"71f0dc71-2b89-48d8-94bf-f3c7c063382e", "company":"ОЛЕГ масла", "full_name":"Олег Робин", "first_name":"Олег"}] }}]}}} http://localhost:9090/solr/people/suggest?q=full_name_ngram%3A%D9%85%D8%B3%D8%B9%D9%88%D8%AF&wt=json&indent=true { "responseHeader":{ "status":0, "QTime":7, "params":{ "indent":"true", "q":"full_name_ngram:مسعود", "wt":"json"}}, "grouped":{ "full_name":{ "matches":3, "groups":[{ "groupValue":null, "doclist":{"numFound":1,"start":0,"docs":[ { "job_tree":"رسام كاريكاتور", "last_name":"النغش", "state":"Amman", "country":"Jordan", "city":"Amman", "id":"fa0a5f94-0497-49f6-9060-ec45c27c0d8e", "company":"شركة الفنون المتطورة", "full_name":"مسعود النغش", "first_name":"مسعود "}] }}, { "
Re: Multi Language Suggester Solr Issue
thanks it is work for me -- View this message in context: http://lucene.472066.n3.nabble.com/Multi-Language-Suggester-Solr-Issue-tp4176075p4176324.html Sent from the Solr - User mailing list archive at Nabble.com.