|
|
@@ -293,7 +293,7 @@ public:
|
|
|
bool AddSchemaItem ( SqlNode_t * pNode );
|
|
|
bool SetMatch ( const SqlNode_t & tValue );
|
|
|
bool AddMatch ( const SqlNode_t & tValue, const SqlNode_t & tIndex );
|
|
|
- bool SetKNN ( const SqlNode_t & tAttr, const SqlNode_t & tK, const SqlNode_t & tValues );
|
|
|
+ bool SetKNN ( const SqlNode_t & tAttr, const SqlNode_t & tK, const SqlNode_t & tValues, const SqlNode_t * pEf );
|
|
|
void AddConst ( int iList, const SqlNode_t& tValue );
|
|
|
void SetLocalStatement ( const SqlNode_t & tName );
|
|
|
bool AddFloatRangeFilter ( const SqlNode_t & tAttr, float fMin, float fMax, bool bHasEqual, bool bExclude=false );
|
|
|
@@ -1236,10 +1236,12 @@ bool SqlParser_c::AddMatch ( const SqlNode_t & tValue, const SqlNode_t & tIndex
|
|
|
return true;
|
|
|
}
|
|
|
|
|
|
-bool SqlParser_c::SetKNN ( const SqlNode_t & tAttr, const SqlNode_t & tK, const SqlNode_t & tValues )
|
|
|
+bool SqlParser_c::SetKNN ( const SqlNode_t & tAttr, const SqlNode_t & tK, const SqlNode_t & tValues, const SqlNode_t * pEf )
|
|
|
{
|
|
|
ToString ( m_pQuery->m_sKNNAttr, tAttr );
|
|
|
m_pQuery->m_iKNNK = tK.GetValueInt();
|
|
|
+ if ( pEf )
|
|
|
+ m_pQuery->m_iKnnEf = pEf->GetValueInt();
|
|
|
auto pValues = tValues.m_pValues;
|
|
|
if ( pValues )
|
|
|
{
|