title: how to select specific columns in hibernate search
body: <p>I need to select only few columns using hibernate search. Following is the code which works fine</p>
  
  <pre><code>  FullTextSession fts = org.hibernate.search.Search.getFullTextSession(getSession());
  
    org.apache.lucene.search.BooleanQuery query = prepareQuery(dto);
    fullTextQuery = fts.createFullTextQuery(query, ProfileBean.class);
  
    fullTextQuery.setFirstResult(dto.getProfileBean().getResultStartIndex());
    fullTextQuery.setMaxResults(dto.getProfileBean().getResultsLimit());
  
    List&lt;ProfileBean&gt; profiles = fullTextQuery.list();
  </code></pre>
  
  <p>In the above case I only want to select columns 'firstName' and 'lastName'.</p>
  
  <p>Following code throws an exception</p>
  
  <pre><code> List&lt;String&gt; projectedFields = new ArrayList&lt;String&gt;();
            projectedFields.add("firstName");
            projectedFields.add("lastName");
  
  org.hibernate.search.SearchException: Projecting an unstored field: firstName
  </code></pre>
  
  <p>actually i don't want to store the firstName field in lucene any other suggession.?</p>