Case 2796 - Small optimization and code review.
Case 2796 - Added facets and some fixes.
Case 2796 - Added raw result (used by ting_fulltext).
Merge branch 'case-2796' into new-search

* case-2796:
  Case 2796 - Added raw result (used by ting_fulltext).
  Case 2796 - Added facets and some fixes.
  Case 2796 - Small optimization and code review.