lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "alaa.abuzaghleh" <alaa.abuzagh...@gmail.com>
Subject Re: Multi Language Suggester Solr Issue
Date Thu, 25 Dec 2014 22:26:05 GMT
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":"مسعود "}]
          }},
        {
          "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":"Олег"}]
          }},
        {
          "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":"すね"}]
          }}]}}}
 I think it is problem in my suggester configuration, or the schema type.
not sure 



ّ



--
View this message in context: http://lucene.472066.n3.nabble.com/Multi-Language-Suggester-Solr-Issue-tp4176075p4176126.html
Sent from the Solr - User mailing list archive at Nabble.com.

Mime
View raw message