Permalink
Browse files

fixed #230 github#62 log expand_keywords option into sphinxql query log

  • Loading branch information...
tomatolog committed Mar 13, 2018
1 parent 6582bcf commit 85a6d7e3db75f28c491042409bb677ed39eba07b
Showing with 6 additions and 0 deletions.
  1. +6 −0 src/searchd.cpp
@@ -4652,6 +4652,12 @@ static void FormatOption ( const CSphQuery & tQuery, StringBuilder_c & tBuf )
tBuf.Appendf ( iOpts++ ? ", " : " OPTION " );
tBuf.Appendf ( "strict=1" );
}
if ( tQuery.m_eExpandKeywords!=QUERY_OPT_DEFAULT )
{
tBuf.Appendf ( iOpts++ ? ", " : " OPTION " );
tBuf.Appendf ( "expand_keywords=%d", ( tQuery.m_eExpandKeywords==QUERY_OPT_ENABLED ? 1 : 0 ) );
}
}
static void LogQuerySphinxql ( const CSphQuery & q, const CSphQueryResult & tRes, const CSphVector<int64_t> & dAgentTimes, int iCid )

0 comments on commit 85a6d7e

Please sign in to comment.