Skip to content
Permalink
Browse files

Discard non-capable indexes in search

Selecting from templates have no sense. Let's distinguish indexes by
capabilities and avoid sending search requests to templates.
That fixes #834
  • Loading branch information...
klirichek committed May 27, 2019
1 parent 578524a commit 25d2dabda4a299a29bd375405862126da9b4bfac
Showing with 8 additions and 0 deletions.
  1. +8 −0 src/searchd.cpp
@@ -7055,6 +7055,14 @@ void SearchHandler_c::RunLocalSearches()
continue;
}

if ( !ServedDesc_t::IsSelectable ( pServed ) )
{
for ( int i = m_iStart; i<=m_iEnd; ++i )
m_dFailuresSet[i].SubmitEx ( sLocal, nullptr, "%s", "index is not suitable for select" );

continue;
}

assert ( pServed->m_pIndex );

// create sorters

0 comments on commit 25d2dab

Please sign in to comment.
You can’t perform that action at this time.