<p dir="auto">I wanted to aggregate my percolation results with a nested aggregation. However, it appears that code path isn't implemented. Martijn (<a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/martijnvg/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/martijnvg">@martijnvg</a>) you appeared to know the issue.</p>
<p dir="auto">PercolateContext.java</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="@Override
public MapperService.SmartNameObjectMapper smartNameObjectMapper(String name) {
throw new UnsupportedOperationException();
}"><pre class="notranslate"><code class="notranslate">@Override
public MapperService.SmartNameObjectMapper smartNameObjectMapper(String name) {
throw new UnsupportedOperationException();
}
</code></pre></div>
<p dir="auto">Is there support for this coming soon? It would be nice utility that would help avoid duplicating percolators.</p>
<p dir="auto">Here is the script to reproduce the problem</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="PUT /classify
{
  &quot;mappings&quot;:{
    &quot;.percolator&quot;:{
      &quot;properties&quot;: {
        &quot;query&quot; : {
          &quot;type&quot; : &quot;object&quot;,
          &quot;enabled&quot; : false
        },
        &quot;isa&quot;:{
          &quot;type&quot;: &quot;nested&quot;,
          &quot;properties&quot;:{
            &quot;feature&quot;:{
              &quot;type&quot;: &quot;string&quot;
            },
            &quot;id&quot;: {
              &quot;type&quot;: &quot;string&quot;
            }
          }
        }
      }
    },
    &quot;thing&quot;:{
      &quot;properties&quot;:{
        &quot;name&quot;:{
          &quot;type&quot;:&quot;string&quot;
        }
      }
    }
  }
}

POST classify/.percolator/1234
{
  &quot;query&quot;: {
    &quot;match&quot;: {
      &quot;name&quot;: &quot;arts&quot;
    }
  },
  &quot;type&quot;: &quot;thing&quot;,
  &quot;isa&quot;:[{
    &quot;feature&quot;: &quot;Category&quot;,
    &quot;id&quot;: &quot;theatre&quot;
  },
  {
    &quot;feature&quot;: &quot;Ambience&quot;,
    &quot;id&quot;: &quot;classy&quot;
  }
  ]
}

GET /classify/thing/_percolate
{
  &quot;doc&quot;: {
    &quot;name&quot;: &quot;Academy of Arts&quot;
  },
  &quot;aggs&quot;:{
    &quot;isa&quot;:{
      &quot;nested&quot;: {
        &quot;path&quot;: &quot;isa&quot;
      },
      &quot;aggs&quot;: {
        &quot;features&quot;: {
          &quot;terms&quot;: {
            &quot;field&quot;: &quot;isa.feature&quot;
          },
          &quot;aggs&quot;: {
            &quot;kinds&quot;: {
              &quot;terms&quot;: {
                &quot;field&quot;: &quot;isa.id&quot;
              }
            }
          }
        }
      }
    }
  }
}"><pre class="notranslate"><code class="notranslate">PUT /classify
{
  "mappings":{
    ".percolator":{
      "properties": {
        "query" : {
          "type" : "object",
          "enabled" : false
        },
        "isa":{
          "type": "nested",
          "properties":{
            "feature":{
              "type": "string"
            },
            "id": {
              "type": "string"
            }
          }
        }
      }
    },
    "thing":{
      "properties":{
        "name":{
          "type":"string"
        }
      }
    }
  }
}

POST classify/.percolator/1234
{
  "query": {
    "match": {
      "name": "arts"
    }
  },
  "type": "thing",
  "isa":[{
    "feature": "Category",
    "id": "theatre"
  },
  {
    "feature": "Ambience",
    "id": "classy"
  }
  ]
}

GET /classify/thing/_percolate
{
  "doc": {
    "name": "Academy of Arts"
  },
  "aggs":{
    "isa":{
      "nested": {
        "path": "isa"
      },
      "aggs": {
        "features": {
          "terms": {
            "field": "isa.feature"
          },
          "aggs": {
            "kinds": {
              "terms": {
                "field": "isa.id"
              }
            }
          }
        }
      }
    }
  }
}
</code></pre></div>
<p dir="auto"><strong>Elasticsearch version</strong>:2.3.5</p>
<p dir="auto"><strong>Plugins installed</strong>: [head,ik]</p>
<p dir="auto"><strong>JVM version</strong>:1.8.0_92</p>
<p dir="auto"><strong>OS version</strong>:Red Hat 4.8.3</p>
<p dir="auto"><strong>Description of the problem including expected versus actual behavior</strong>:</p>
<p dir="auto"><strong>Steps to reproduce</strong>:<br>
1.Highlighting does not work with a boosting query.<br>
2.When I get rid of boosting it will works as expected.</p>
<p dir="auto"><strong>Provide logs (if relevant)</strong>:</p>

<p dir="auto"><strong>Describe the feature</strong>:<br>
I found that Issue <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="1602581" data-permission-text="Title is private" data-url="https://github.com/elastic/elasticsearch/issues/1314" data-hovercard-type="issue" data-hovercard-url="/elastic/elasticsearch/issues/1314/hovercard" href="https://github.com/elastic/elasticsearch/issues/1314">#1314</a> from september 2011 raises the same issue, has it perhaps reappeared?</p>