Hi Team,

Im getting the duplicate result when i do auto suggestion based on multiple
filed by using copy filed . i have below table configuration .

Segment -- have multiple category -- have multiple sub category -- have
multiple products.

suggestion are given based on
segment name, category name, sub category name and product name.

below is output .

---------------

{
  "responseHeader": {
    "status": 0,
    "QTime": 1375
  },
  "command": "build",
  "suggest": {
    "mySuggester": {
      "Fruit": {
        "numFound": 10,
        "suggestions": [
          {
            "term": "<b>Fruit</b>s & Vegetables",
            "weight": 1000,
            "payload": ""
          },
          {
            "term": "<b>Fruit</b>s & Vegetables",
            "weight": 1000,
            "payload": ""
          },
          {
            "term": "<b>Fruit</b>s & Vegetables",
            "weight": 980,
            "payload": ""
          },
          {
            "term": "<b>Fruit</b>s & Vegetables",
            "weight": 980,
            "payload": ""
          },
          {
            "term": "<b>Fruit</b>s & Vegetables",
            "weight": 800,
            "payload": ""
          },
          {
            "term": "<b>Fruit</b>s & Vegetables",
            "weight": 588,
            "payload": ""
          },
          {
            "term": "Cut <b>Fruit</b>s",
            "weight": 456,
            "payload": ""
          },
          {
            "term": "<b>Fruit</b>s",
            "weight": 456,
            "payload": ""
          },
          {
            "term": "<b>Fruit</b>s & Vegetables",
            "weight": 456,
            "payload": ""
          },
          {
            "term": "<b>Fruit</b>s",
            "weight": 456,
            "payload": ""
          }
        ]
      }
    }
  }
}

-- 
Thanks & Regards,

Tejas Bhanushali

Reply via email to