[This is preliminary documentation and subject to change.]
DBPROP_USECONTENTINDEX controls the use of the index when processing queries.
If the value is VARIANT_TRUE, the index is always used to resolve the query, even if the index is not up to date. If the value is VARIANT_FALSE and the index is not up to date, the query engine may enumerate the file system to process the query.
This setting affects property value queries like "@size > 1000".
Enumerating the file system can be disk intensive and slow.
Content queries always use the index and never enumerate regardless of the setting of this property.
Certain types of queries require DBPROP_USECONTENTINDEX to be VARIANT_FALSE to return results, for example "#filename *.dll OR #filename *.exe". These queries require enumeration and can't use the index even if the index is up to date.
This property corresponds to the CiForceUseCi variable in Index Server's IDQ files.
This property corresponds to the AllowEnumeration variable in Index Server's ASP Query object.
Property Set | DBPROPSET_QUERYEXT |
Property ID | DBPROP_USECONTENTINDEX |
Value Type | DBTYPE_BOOL |
Default | VARIANT_FALSE |