lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Tejas Bhanushali <contact.tejasbhanush...@gmail.com>
Subject Getting duplicate output while doing auto suggestion based on multiple filed using copy filed in solr 5.5
Date Fri, 15 Apr 2016 17:48:59 GMT
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

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message