Facets on nested documents

Hi,

I needed help.

I have my document with the below structure(reduced for simplicity):

{
id: 1,
applications: {
search: {
applicable: no,
level: 1
}
}
}

Question:

  1. How do i get facets for the inner object 'search'. i.e.
    applications.search.
  2. How do i get facets for the key 'applicable'. i.e.
    applications.search.applicable

Please help.
Thanks alot,
Jaskaran

--