Orchard で lucene.net を構成して、Orchard ルートの下のディレクトリにある単語ドキュメントのコンテンツを検索する方法はありますか。また、別のWebサイトにもインデックスを付ける方法はありますか.
1 に答える
0
Orchard でコンテンツを contentitems として何らかの方法で追加できる場合はOnIndexing
、ContentHandler
.
このような何かがそれを行う必要があります:
public class WordDocumentContentHandler: ContentHandler {
public WordDocumentContentHandler() {
OnIndexing<ContentPart>((context, part) => {
// Detect if the part has the field containing the URL to the document
// and analyze it here.
});
}
}
于 2012-12-10T13:37:38.507 に答える