{"id":444,"date":"2023-11-27T15:12:27","date_gmt":"2023-11-27T07:12:27","guid":{"rendered":""},"modified":"2025-01-02T17:11:19","modified_gmt":"2025-01-02T09:11:19","slug":"article-slug-253","status":"publish","type":"post","link":"https:\/\/support.fuxinsoft.cn\/?p=444","title":{"rendered":"\u662f\u5426\u652f\u6301\u5168\u6587\u7d22\u5f15\u641c\u7d22\uff1f\u5982\u679c\u652f\u6301\uff0c\u5982\u4f55\u641c\u7d22\u5728\u6211\u7684\u79fb\u52a8\u8bbe\u5907\u4e0a\u79bb\u7ebf\u5b58\u50a8\u7684 PDF \u6587\u4ef6\uff1f"},"content":{"rendered":"<p style=\"margin-top: 10px; margin-bottom: 0px; padding: 0px;\">\u652f\u6301\u3002<\/p>\n<p style=\"margin-top: 10px; margin-bottom: 0px; padding: 0px;\">\u798f\u6615RDK Android\u4ece 5.0 \u7248\u672c\u5f00\u59cb\u5c31\u652f\u6301\u5168\u6587\u7d22\u5f15\u641c\u7d22\u3002<\/p>\n<p style=\"margin-top: 10px; margin-bottom: 0px; padding: 0px;\">\u8981\u4f7f\u7528\u6b64\u529f\u80fd\uff0c\u8bf7\u6309\u7167\u5982\u4e0b\u7684\u6b65\u9aa4\uff1a<\/p>\n<ol style=\"margin-top: 10px;\" class=\" list-paddingleft-2\">\n<li>\n<p>a) \u6839\u636e\u76ee\u5f55\u6765\u521b\u5efa\u4e00\u4e2a\u6587\u6863\u6765\u6e90\uff0c\u8be5\u76ee\u5f55\u4e3a\u6587\u6863\u7684\u641c\u7d22\u76ee\u5f55\u3002<\/p>\n<\/li>\n<\/ol>\n<p style=\"margin-top: 10px; margin-bottom: 0px; padding: 0px;\">public DocumentsSource(String directory)<\/p>\n<ol style=\"margin-top: 10px;\" class=\" list-paddingleft-2\">\n<li>\n<p>b) \u521b\u5efa\u4e00\u4e2a\u5168\u6587\u6587\u672c\u641c\u7d22\u5bf9\u8c61\uff0c\u4ee5\u53ca\u8bbe\u7f6e\u7528\u4e8e\u5b58\u50a8\u7d22\u5f15\u6570\u636e\u7684\u6570\u636e\u5e93\u8def\u5f84\u3002<\/p>\n<\/li>\n<\/ol>\n<p style=\"margin-top: 10px; margin-bottom: 0px; padding: 0px;\">public FullTextSearch()<\/p>\n<p style=\"margin-top: 10px; margin-bottom: 0px; padding: 0px;\">public void setDataBasePath(String pathOfDataBase)<\/p>\n<ol style=\"margin-top: 10px;\" class=\" list-paddingleft-2\">\n<li>\n<p>c) \u5f00\u59cb\u7d22\u5f15\u6587\u6863\u6765\u6e90\u4e2d\u7684 PDF \u6587\u6863\u3002<\/p>\n<\/li>\n<\/ol>\n<p style=\"margin-top: 10px; margin-bottom: 0px; padding: 0px;\">public Progressive startUpdateIndex(DocumentsSource source,PauseCallback pause, boolean reUpdate)<\/p>\n<p style=\"margin-top: 10px; margin-bottom: 0px; padding: 0px;\">\u5907\u6ce8\uff1a\u60a8\u53ef\u4ee5\u7d22\u5f15\u6307\u5b9a\u7684PDF\u6587\u4ef6\u3002\u4f8b\u5982\uff0c\u5982\u679c\u67d0\u4e2aPDF\u6587\u6863\u7684\u5185\u5bb9\u53d1\u751f\u4e86\u66f4\u6539\uff0c\u60a8\u53ef\u4ee5\u4f7f\u7528\u4ee5\u4e0b\u7684API\u5bf9\u5176\u91cd\u65b0\u8fdb\u884c\u7d22\u5f15\uff1a<\/p>\n<p style=\"margin-top: 10px; margin-bottom: 0px; padding: 0px;\">public boolean updateIndexWithFilePath(java.lang.String filePath)<\/p>\n<ol style=\"margin-top: 10px;\" class=\" list-paddingleft-2\">\n<li>\n<p>d) \u4ece\u7d22\u5f15\u6570\u636e\u6e90\u4e2d\u641c\u7d22\u6307\u5b9a\u7684\u5185\u5bb9\u3002\u641c\u7d22\u7684\u7ed3\u679c\u5c06\u901a\u8fc7\u6307\u5b9a\u7684\u56de\u8c03\u51fd\u6570\u6765\u8fd4\u56de\u7ed9\u5916\u90e8\uff0c\u6bcf\u627e\u5230\u4e00\u4e2a\u5339\u914d\u7ed3\u679c\uff0c\u5219\u8c03\u7528\u4e00\u6b21\u56de\u8c03\u51fd\u6570\u3002<\/p>\n<\/li>\n<\/ol>\n<p style=\"margin-top: 10px; margin-bottom: 0px; padding: 0px;\">public boolean searchOf(java.lang.String matchString,RankMode rankMode,<\/p>\n<p style=\"margin-top: 10px; margin-bottom: 0px; padding: 0px;\">SearchCallback searchCallback)<\/p>\n<p style=\"margin-top: 10px; margin-bottom: 0px; padding: 0px;\"><\/p>\n<p style=\"margin-top: 10px; margin-bottom: 0px; padding: 0px;\">\u5907\u6ce8\uff1a<\/p>\n<ul style=\"margin-top: 10px;\" class=\" list-paddingleft-2\">\n<li>\n<p>Foxit PDF SDK for Android \u63d0\u4f9b\u7684\u5168\u6587\u7d22\u5f15\u641c\u7d22\u5c06\u4ee5\u9012\u5f52\u7684\u65b9\u5f0f\u904d\u5386\u6574\u4e2a\u76ee\u5f55\uff0c\u4ee5\u4fbf\u641c\u7d22\u76ee\u5f55\u4e0b\u7684\u6587\u4ef6\u548c\u6587\u4ef6\u5939\u90fd\u4f1a\u88ab\u7d22\u5f15\u3002<\/p>\n<\/li>\n<li>\n<p>\u5982\u679c\u9700\u8981\u4e2d\u6b62\u7d22\u5f15\u8fdb\u7a0b\uff0c\u53ef\u4ee5\u5c06 pause \u56de\u8c03\u53c2\u6570\u4f20\u9012\u7ed9 startUpdateIndex \u63a5\u53e3\u3002\u5176\u56de\u8c03\u51fd\u6570 needToPauseNow \u90fd\u4f1a\u88ab\u8c03\u7528\uff0c\u4e00\u65e6\u5b8c\u6210\u4e00\u4e2a PDF \u6587\u6863\u7684\u7d22\u5f15\u3002\u56e0\u6b64\uff0c\u8c03\u7528\u8005\u53ef\u4ee5\u5728\u56de\u8c03\u51fd\u6570 needToPauseNow \u8fd4\u56de &quot;true&quot; \u65f6\u4e2d\u6b62\u7d22\u5f15\u8fdb\u7a0b\u3002<\/p>\n<\/li>\n<li>\n<p>\u7d22\u5f15\u6570\u636e\u5e93\u7684\u4f4d\u7f6e\u7531 setDataBasePath \u63a5\u53e3\u8bbe\u7f6e\u3002\u5982\u679c\u8981\u6e05\u9664\u7d22\u5f15\u6570\u636e\u5e93\uff0c\u8bf7\u624b\u52a8\u6e05<\/p>\n<\/li>\n<\/ul>\n<p style=\"margin-top: 10px; margin-bottom: 0px; padding: 0px;\">\u9664\u3002\u76ee\u524d\uff0c\u4e0d\u652f\u6301\u4ece\u7d22\u5f15\u51fd\u6570\u4e2d\u5220\u9664\u6307\u5b9a\u6587\u4ef6\u76f8\u5173\u7684\u7d22\u5f15\u5185\u5bb9\u3002<\/p>\n<ul style=\"margin-top: 10px;\" class=\" list-paddingleft-2\">\n<li>\n<p>searchOf \u63a5\u53e3\u7684\u6bcf\u4e2a\u641c\u7d22\u7ed3\u679c\u90fd\u7531\u6307\u5b9a\u7684\u56de\u8c03\u8fd4\u56de\u5230\u5916\u90e8\u3002\u4e00\u65e6 searchOf \u63a5\u53e3\u8fd4\u56de&quot;true&quot;\u6216 &quot;false&quot;\uff0c\u5219\u8868\u793a\u641c\u7d22\u5df2\u5b8c\u6210\u3002<\/p>\n<\/li>\n<\/ul>\n<p style=\"margin-top: 10px; margin-bottom: 0px; padding: 0px;\"><br style=\"color: rgb(23, 43, 77); font-family: -apple-system, BlinkMacSystemFont, &quot;Segoe UI&quot;, Roboto, Oxygen, Ubuntu, &quot;Fira Sans&quot;, &quot;Droid Sans&quot;, &quot;Helvetica Neue&quot;, sans-serif; text-wrap: wrap; background-color: rgb(255, 255, 255);\"\/><\/p>\n<p><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u652f\u6301\u3002 \u798f\u6615RDK Android\u4ece 5.0 \u7248\u672c\u5f00\u59cb\u5c31\u652f\u6301\u5168\u6587\u7d22\u5f15\u641c\u7d22\u3002 \u8981\u4f7f\u7528\u6b64\u529f\u80fd\uff0c\u8bf7\u6309\u7167\u5982\u4e0b\u7684\u6b65\u9aa4\uff1a  [&hellip;]<\/p>\n","protected":false},"author":11,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[85],"tags":[],"class_list":["post-444","post","type-post","status-publish","format-standard","hentry","category-rdk-android"],"pp_statuses_selecting_workflow":false,"pp_workflow_action":"current","pp_status_selection":"publish","_links":{"self":[{"href":"https:\/\/support.fuxinsoft.cn\/index.php?rest_route=\/wp\/v2\/posts\/444","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/support.fuxinsoft.cn\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/support.fuxinsoft.cn\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/support.fuxinsoft.cn\/index.php?rest_route=\/wp\/v2\/users\/11"}],"replies":[{"embeddable":true,"href":"https:\/\/support.fuxinsoft.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=444"}],"version-history":[{"count":3,"href":"https:\/\/support.fuxinsoft.cn\/index.php?rest_route=\/wp\/v2\/posts\/444\/revisions"}],"predecessor-version":[{"id":3976,"href":"https:\/\/support.fuxinsoft.cn\/index.php?rest_route=\/wp\/v2\/posts\/444\/revisions\/3976"}],"wp:attachment":[{"href":"https:\/\/support.fuxinsoft.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=444"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/support.fuxinsoft.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=444"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/support.fuxinsoft.cn\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=444"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}