Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
fixed #234; added warning on unsupported infix length; fixed infix vs…
… prefix length set; fixed models at tests 1,2,3,12,54,173,350
- Loading branch information
Showing
with
31 additions
and 58 deletions.
- +5 −0 src/searchd.cpp
- +15 −8 src/sphinx.cpp
- +1 −1 src/sphinx.h
- +3 −9 src/sphinxrt.cpp
- +0 −33 src/sphinxsearch.cpp
- +1 −1 test/test_001/model.bin
- +1 −1 test/test_002/model.bin
- +1 −1 test/test_003/model.bin
- +1 −1 test/test_012/model.bin
- +1 −1 test/test_054/model.bin
- +1 −1 test/test_173/model.bin
- +1 −1 test/test_350/model.bin
sphWarning ( "dict=crc deprecated, use dict=keywords instead" ); | ||
if ( bWordDict && ( tSettings.m_dPrefixFields.GetLength() || tSettings.m_dInfixFields.GetLength() ) ) | ||
sphWarning ( "WARNING: index '%s': prefix_fields and infix_fields has no effect with dict=keywords, ignoring\n", szIndexName ); | ||
if ( bWordDict && tSettings.m_iMinInfixLen==1 ) | ||
{ | ||
sphWarn ( "min_infix_len must be greater than 1, changed to 2" ); | ||
tSettings.m_iMinInfixLen = 2; | ||
} | ||
|
||
if ( !bPercolate ) | ||
tIdx.m_pIndex = sphCreateIndexRT ( tSchema, szIndexName, iRamSize, hIndex["path"].cstr(), bWordDict ); |
Oops, something went wrong.