Partager via


DBPROP_USECONTENTINDEX

Note

Indexing Service is no longer supported as of Windows XP and is unavailable for use as of Windows 8. Instead, use Windows Search for client side search and Microsoft Search Server Express for server side search.

 

The DBPROP_USECONTENTINDEX property controls the use of the index when processing queries.

Summary

Property Set DBPROPSET_QUERYEXT
Property ID DBPROP_USECONTENTINDEX
Value Type DBTYPE_BOOL
Default VARIANT_FALSE

 

Remarks

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 such as "@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 *.dl*". These queries require enumeration and cannot use the index even if the index is up to date.

This property corresponds to the CiForceUseCi variable in the Internet Data Query Files of Indexing Service.

This property corresponds to the AllowEnumeration variable in the Query object of Indexing Service .