title: Composite facet for hibernate search
body: <p>I have two entities: <code>Action</code> and <code>User</code> with many-to-one relationship.<br>
  I search for actions and I'd like to have a <code>user full name</code> facet, but instead of a <code>full_name</code> column in the database, I have <code>first_name</code> and <code>last_name</code>.</p>
  
  <p>Is there any way to create a combined facet in hibernate search that would use <code>firstName</code> and <code>lastName</code> together? Or is there a way to create a combined field <code>fullName</code> that will exist in the search index (with a facet) but not in the database?</p>
  
  <p>The mapping is the following:</p>
  
  <pre><code>@Entity
  public class Action {
  
      ...
  
      @IndexEmbedded
      private User user;
  
  }
  
  
  @Entity
  public class User {
  
      ...
  
      @Facet
      @Field(analyze = Analyze.NO)
      private String firstName;
  
      @Facet
      @Field(analyze = Analyze.NO)
      private String lastName;
  
  }
  </code></pre>