You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by "Tejasbhanushali (JIRA)" <ji...@apache.org> on 2016/04/15 18:52:25 UTC

[jira] [Created] (LUCENE-7224) Remove duplicate term in auto suggestion using copyfield in solr 5.5

Tejasbhanushali created LUCENE-7224:
---------------------------------------

             Summary: Remove duplicate term in auto suggestion using copyfield in solr 5.5
                 Key: LUCENE-7224
                 URL: https://issues.apache.org/jira/browse/LUCENE-7224
             Project: Lucene - Core
          Issue Type: Bug
    Affects Versions: 5.5
            Reporter: Tejasbhanushali
            Priority: Blocker


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

duplicate output getting on auto suggestion based on multiple filed using copyfield . FYI "Fruits</b> & Vegetables" .

we have segment --  category(multiple) -- subcategory(multiple)--products hierarchy 



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org