boostPerField.put("description", 2f);
boostPerField.put("actors.name", 2f);
boostPerField.put("categories.name", 0.5f);
String[] productFields = {"title", "description", "actors.name", "categories.name"};
QueryParser parser = new MultiFieldQueryParser(productFields, new StandardAnalyzer(), boostPerField);
parser.setAllowLeadingWildcard(true);
org.apache.lucene.search.Query luceneQuery;
luceneQuery = parser.parse(searchQuery);
return ( (FullTextEntityManager) em ).createFullTextQuery(luceneQuery, Product.class);
}