Hi Dave,

Yes we are getting the results while using AND operator in between the
words.

Below is the example:

*Scenario 1:*

{
  "responseHeader": {
    "status": 0,
    "QTime": 1,
    "params": {
      "indent": "true",
      "q": "bizNameAr:(مسقط AND الاتصال)",
      "_": "1501998206658",
      "wt": "json"
    }
  },
  "response": {
    "numFound": 44,
    "start": 0,
    "docs": [
      {
        "id": "56367",
        "bizNameAr": "بنك مسقط - مركز الاتصال",
        "_version_": 1574621133647380500
      },
      {
        "id": "27224",
        "bizNameAr": "بلدية مسقط -  - بلدية مسقط - مركز الاتصالات",
        "_version_": 1574621132817956900
      },
      {
        "id": "148922",
        "bizNameAr": "بنك مسقط - ميثاق - مركز الاتصال",
        "_version_": 1574621136335929300
      },
      {
        "id": "23695",
        "bizNameAr": "قوة السلطان الخاصة - مركز الإتصالات  - مسقط",
        "_version_": 1574621132683739100
      },
      {
        "id": "34992",
        "bizNameAr": "طوارئ الكهرباء - محافظة مسقط - مركز الاتصال",
        "_version_": 1574621133116801000
      },
      {
        "id": "96500",
        "bizNameAr": "شركة مسقط لتوزيع الكهرباء( ام اي دي سي)  - مركز
الاتصال",
        "_version_": 1574621134575370200
      },
      {
        "id": "23966",
        "bizNameAr": "ديوان البلاط السلطاني - القصر - مسقط - المديرية العامة
للاتصالات ونظم المعلومات -  - المديرية العامة للاتصالات ونظم المعلومات -
البدالة",
        "_version_": 1574621132692127700
      },
      {
        "id": "24005",
        "bizNameAr": "ديوان البلاط السلطاني - القصر - مسقط - المديرية العامة
للاتصالات ونظم المعلومات -  - مدير عام الاتصالات ونظم المعلومات -",
        "_version_": 1574621132694225000
      },
      {
        "id": "24026",
        "bizNameAr": "ديوان البلاط السلطاني - القصر - مسقط - المديرية العامة
للاتصالات ونظم المعلومات -  - مساعد مدير عام الاتصالات ونظم المعلومات -",
        "_version_": 1574621132694225000
      },
      {
        "id": "24096",
        "bizNameAr": "ديوان البلاط السلطاني - القصر - مسقط - المديرية العامة
للاتصالات ونظم المعلومات -  - مدير دائرة الاتصالات والصيانة -",
        "_version_": 1574621132697370600
      }
    ]
  }
}


*Scenario 2:*.

{
  "responseHeader": {
    "status": 0,
    "QTime": 1,
    "params": {
      "indent": "true",
      "q": "bizNameAr:(مسقط AND الات)",
      "_": "1501998438821",
      "wt": "json"
    }
  },
  "response": {
    "numFound": 0,
    "start": 0,
    "docs": []
  }
}

We are expecting same results in the scenario 2 as well where am not typing
the second word fully as in scenario’s 2 input.


Below are the inputs used in both scenarios:

*Scenario 1:*
First word: مسقط
Second word: الاتصال

*Scenario 2:*
First word: مسقط
Second word: الات

However, in our current production environment both of the above scenarios
are working fine, but we have an issue of “Hamza” character where we are not
getting results unless typing “Hamza” if it’s there.

{
  "responseHeader": {
    "status": 0,
    "QTime": 9,
    "params": {
      "fl": "businessNmBl",
      "indent": "true",
      "q": "businessNmBl:شرطة إزكي",
      "_": "1501997897849",
      "wt": "json"
    }
  },
  "response": {
    "numFound": 1,
    "start": 0,
    "docs": [
      {
        "businessNmBl": "شرطة عمان السلطانية - قيادة شرطة محافظة الداخلية  - 
- مركز شرطة إزكي"
      }
    ]
  }
}






--
View this message in context: 
http://lucene.472066.n3.nabble.com/Arabic-words-search-in-solr-tp4317733p4349258.html
Sent from the Solr - User mailing list archive at Nabble.com.

Reply via email to