Skip to content

Commit

Permalink
fixed #27 count distinct at facet query; added regressions to test 226
Browse files Browse the repository at this point in the history
  • Loading branch information
Stanislav Klinov committed Jun 1, 2017
1 parent ef0db40 commit a86173c
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 2 deletions.
3 changes: 3 additions & 0 deletions src/searchd.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -10122,6 +10122,9 @@ bool sphParseSqlQuery ( const char * sQuery, int iLen, CSphVector<SqlStmt_t> & d
tStmt.m_tQuery.m_sSelect = tStmt.m_tQuery.m_sFacetBy;
tStmt.m_tQuery.m_sQuery = tHeadQuery.m_sQuery;
tStmt.m_tQuery.m_iMaxMatches = tHeadQuery.m_iMaxMatches;

// need to keep same wide result set schema
tStmt.m_tQuery.m_sGroupDistinct = tHeadQuery.m_sGroupDistinct;

// append filters
ARRAY_FOREACH ( k, tHeadQuery.m_dFilters )
Expand Down

0 comments on commit a86173c

Please sign in to comment.