html filter 在线预览,HTML Filter

HTML Filter

05/31/2018

2 分钟可看完

本文内容

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 HTML implementation for the IFilter interface (in nlhtml.dll) extracts text and property information from the class "htmlfiles" so that it can be indexed by Indexing Service. Indexing Service calls the methods on this IFilter interface implementation when indexing HTML files. For a description of the association between filter and file type, see Finding the Filter DLL for a File.

You can use the tag feature of HTML documents to convey special handling requests to the HTML filter. tags occur near the beginning of an html file within the

... tags, as shown in the following example.

Some HTML META tags are automatically mapped to well-known property set and property ID values so that queries on these properties will search the mapped contents. Examples include the following.

Property example

Mapped to

The author property in the Summary Information property set.

The subject property in the Summary Information property set.

The keyword property in the Summary Information property set.

The category property in the document Summary Information property set.

Here are some other special features of the HTML filter:

Creating special abstracts from files

The filtering process can generate abstracts for each filtered file, which default to being a set of characters at the beginning of the file. As shown in the example at the beginning of this section, you can use the tag to instruct the filter to use the string following the CONTENT keyword as the document abstract.

Preventing individual files from being filtered

Add the following meta tag to the file:

Setting the language code for a file to ensure the system chooses the correct language word breakers and noise word files

Add the following meta tag to the file, where the content field specifies the appropriate language code (in characters or using the locale value):

or

You can also define new new property names to filter. For additional information, see Defining New Property Names for a Web Catalog.

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值