⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 classxapian_1_1document.tex

📁 xapian 是一个“Xapian 是一个开源概率论信息检索库
💻 TEX
📖 第 1 页 / 共 2 页
字号:
Remove all values associated with the document. \hypertarget{classXapian_1_1Document_767026a91f3a1421f3d23f7a170509d4}{\index{Xapian::Document@{Xapian::Document}!get_data@{get\_\-data}}\index{get_data@{get\_\-data}!Xapian::Document@{Xapian::Document}}\subsubsection[get\_\-data]{\setlength{\rightskip}{0pt plus 5cm}std::string Xapian::Document::get\_\-data () const}}\label{classXapian_1_1Document_767026a91f3a1421f3d23f7a170509d4}Get data stored in the document. This is a potentially expensive operation, and shouldn't normally be used in a match decider functor. Put data for use by match deciders in a value instead. \hypertarget{classXapian_1_1Document_eb93627c7cb0556c0935d5c2bb4f0847}{\index{Xapian::Document@{Xapian::Document}!get_description@{get\_\-description}}\index{get_description@{get\_\-description}!Xapian::Document@{Xapian::Document}}\subsubsection[get\_\-description]{\setlength{\rightskip}{0pt plus 5cm}std::string Xapian::Document::get\_\-description () const}}\label{classXapian_1_1Document_eb93627c7cb0556c0935d5c2bb4f0847}Introspection method. \begin{Desc}\item[Returns:]A string representing this \hyperlink{classXapian_1_1Document}{Document}. \end{Desc}\hypertarget{classXapian_1_1Document_035442647130c53f9d44b657eaa5772b}{\index{Xapian::Document@{Xapian::Document}!get_value@{get\_\-value}}\index{get_value@{get\_\-value}!Xapian::Document@{Xapian::Document}}\subsubsection[get\_\-value]{\setlength{\rightskip}{0pt plus 5cm}std::string Xapian::Document::get\_\-value (\hyperlink{types_8h_f24564a367ebbc8f80cf9a1dbd1e81fd}{Xapian::valueno} {\em value}) const}}\label{classXapian_1_1Document_035442647130c53f9d44b657eaa5772b}Get value by number ($>$= 0). \hypertarget{classXapian_1_1Document_470144b154e9a7ec40b0875a8d636b9b}{\index{Xapian::Document@{Xapian::Document}!operator=@{operator=}}\index{operator=@{operator=}!Xapian::Document@{Xapian::Document}}\subsubsection[operator=]{\setlength{\rightskip}{0pt plus 5cm}void Xapian::Document::operator= (const \hyperlink{classXapian_1_1Document}{Document} \& {\em other})}}\label{classXapian_1_1Document_470144b154e9a7ec40b0875a8d636b9b}Assignment is allowed. The internals are reference counted, so assignment is cheap. \hypertarget{classXapian_1_1Document_11eec629737e496a7077b87f763967a5}{\index{Xapian::Document@{Xapian::Document}!remove_posting@{remove\_\-posting}}\index{remove_posting@{remove\_\-posting}!Xapian::Document@{Xapian::Document}}\subsubsection[remove\_\-posting]{\setlength{\rightskip}{0pt plus 5cm}void Xapian::Document::remove\_\-posting (const std::string \& {\em tname}, \hyperlink{types_8h_5cdae0172ef811a7c08017eb4429c311}{Xapian::termpos} {\em tpos}, \hyperlink{types_8h_6979d98ebbe67186bd31e5ee2a7585cb}{Xapian::termcount} {\em wdfdec} = {\tt 1})}}\label{classXapian_1_1Document_11eec629737e496a7077b87f763967a5}Remove a posting of a term from the document. Note that the term will still index the document even if all occurrences are removed. To remove a term from a document completely, use \hyperlink{classXapian_1_1Document_01e5b7bf54fdee77a978c3b5f1b007ba}{remove\_\-term()}.\begin{Desc}\item[Parameters:]\begin{description}\item[{\em tname}]The name of the term. \item[{\em tpos}]The position of the term. \item[{\em wdfdec}]The decrement that will be applied to the wdf when removing this posting. The wdf will not go below the value of 0.\end{description}\end{Desc}\begin{Desc}\item[Exceptions:]\begin{description}\item[{\em Xapian::Invalid\-Argument\-Error}]will be thrown if the term is not at the position specified in the position list for this term in this document.\item[{\em Xapian::Invalid\-Argument\-Error}]will be thrown if the term is not in the document \end{description}\end{Desc}\hypertarget{classXapian_1_1Document_01e5b7bf54fdee77a978c3b5f1b007ba}{\index{Xapian::Document@{Xapian::Document}!remove_term@{remove\_\-term}}\index{remove_term@{remove\_\-term}!Xapian::Document@{Xapian::Document}}\subsubsection[remove\_\-term]{\setlength{\rightskip}{0pt plus 5cm}void Xapian::Document::remove\_\-term (const std::string \& {\em tname})}}\label{classXapian_1_1Document_01e5b7bf54fdee77a978c3b5f1b007ba}Remove a term and all postings associated with it. \begin{Desc}\item[Parameters:]\begin{description}\item[{\em tname}]The name of the term.\end{description}\end{Desc}\begin{Desc}\item[Exceptions:]\begin{description}\item[{\em Xapian::Invalid\-Argument\-Error}]will be thrown if the term is not in the document \end{description}\end{Desc}\hypertarget{classXapian_1_1Document_b919d822838994edb5d99643cb0c2c03}{\index{Xapian::Document@{Xapian::Document}!remove_value@{remove\_\-value}}\index{remove_value@{remove\_\-value}!Xapian::Document@{Xapian::Document}}\subsubsection[remove\_\-value]{\setlength{\rightskip}{0pt plus 5cm}void Xapian::Document::remove\_\-value (\hyperlink{types_8h_f24564a367ebbc8f80cf9a1dbd1e81fd}{Xapian::valueno} {\em valueno})}}\label{classXapian_1_1Document_b919d822838994edb5d99643cb0c2c03}Remove any value with the given number. \hypertarget{classXapian_1_1Document_b1b0da2e7c76acd754f29a52e14f89ae}{\index{Xapian::Document@{Xapian::Document}!set_data@{set\_\-data}}\index{set_data@{set\_\-data}!Xapian::Document@{Xapian::Document}}\subsubsection[set\_\-data]{\setlength{\rightskip}{0pt plus 5cm}void Xapian::Document::set\_\-data (const std::string \& {\em data})}}\label{classXapian_1_1Document_b1b0da2e7c76acd754f29a52e14f89ae}Set data stored in the document. \hypertarget{classXapian_1_1Document_591cc11740bd0b293eaa77f117b7f0d6}{\index{Xapian::Document@{Xapian::Document}!termlist_begin@{termlist\_\-begin}}\index{termlist_begin@{termlist\_\-begin}!Xapian::Document@{Xapian::Document}}\subsubsection[termlist\_\-begin]{\setlength{\rightskip}{0pt plus 5cm}\hyperlink{classXapian_1_1TermIterator}{Term\-Iterator} Xapian::Document::termlist\_\-begin () const}}\label{classXapian_1_1Document_591cc11740bd0b293eaa77f117b7f0d6}Iterator for the terms in this document. \hypertarget{classXapian_1_1Document_0249ddf18171ed53d851f9d82290eb62}{\index{Xapian::Document@{Xapian::Document}!termlist_count@{termlist\_\-count}}\index{termlist_count@{termlist\_\-count}!Xapian::Document@{Xapian::Document}}\subsubsection[termlist\_\-count]{\setlength{\rightskip}{0pt plus 5cm}\hyperlink{types_8h_6979d98ebbe67186bd31e5ee2a7585cb}{Xapian::termcount} Xapian::Document::termlist\_\-count () const}}\label{classXapian_1_1Document_0249ddf18171ed53d851f9d82290eb62}Count the terms in this document. \hypertarget{classXapian_1_1Document_b4ba488b850b48b4972bb4e5f8ccf241}{\index{Xapian::Document@{Xapian::Document}!termlist_end@{termlist\_\-end}}\index{termlist_end@{termlist\_\-end}!Xapian::Document@{Xapian::Document}}\subsubsection[termlist\_\-end]{\setlength{\rightskip}{0pt plus 5cm}\hyperlink{classXapian_1_1TermIterator}{Term\-Iterator} Xapian::Document::termlist\_\-end () const\hspace{0.3cm}{\tt  \mbox{[}inline\mbox{]}}}}\label{classXapian_1_1Document_b4ba488b850b48b4972bb4e5f8ccf241}Equivalent end iterator for \hyperlink{classXapian_1_1Document_591cc11740bd0b293eaa77f117b7f0d6}{termlist\_\-begin()}. \hypertarget{classXapian_1_1Document_1ed6315d39adbc6f3e19d7bcc95ad3fe}{\index{Xapian::Document@{Xapian::Document}!values_begin@{values\_\-begin}}\index{values_begin@{values\_\-begin}!Xapian::Document@{Xapian::Document}}\subsubsection[values\_\-begin]{\setlength{\rightskip}{0pt plus 5cm}\hyperlink{classXapian_1_1ValueIterator}{Value\-Iterator} Xapian::Document::values\_\-begin () const}}\label{classXapian_1_1Document_1ed6315d39adbc6f3e19d7bcc95ad3fe}Iterator for the values in this document. \hypertarget{classXapian_1_1Document_139251ac7b57e67703f797b06793d21c}{\index{Xapian::Document@{Xapian::Document}!values_count@{values\_\-count}}\index{values_count@{values\_\-count}!Xapian::Document@{Xapian::Document}}\subsubsection[values\_\-count]{\setlength{\rightskip}{0pt plus 5cm}\hyperlink{types_8h_6979d98ebbe67186bd31e5ee2a7585cb}{Xapian::termcount} Xapian::Document::values\_\-count () const}}\label{classXapian_1_1Document_139251ac7b57e67703f797b06793d21c}Count the values in this document. \hypertarget{classXapian_1_1Document_0f8166c5d6feab897cafd0ab6e6dfaeb}{\index{Xapian::Document@{Xapian::Document}!values_end@{values\_\-end}}\index{values_end@{values\_\-end}!Xapian::Document@{Xapian::Document}}\subsubsection[values\_\-end]{\setlength{\rightskip}{0pt plus 5cm}\hyperlink{classXapian_1_1ValueIterator}{Value\-Iterator} Xapian::Document::values\_\-end () const}}\label{classXapian_1_1Document_0f8166c5d6feab897cafd0ab6e6dfaeb}Equivalent end iterator for \hyperlink{classXapian_1_1Document_1ed6315d39adbc6f3e19d7bcc95ad3fe}{values\_\-begin()}. \hypertarget{classXapian_1_1Document_4d3394c267aaa47c007d6996f39f9b3e}{\index{Xapian::Document@{Xapian::Document}!XAPIAN_DEPRECATED@{XAPIAN\_\-DEPRECATED}}\index{XAPIAN_DEPRECATED@{XAPIAN\_\-DEPRECATED}!Xapian::Document@{Xapian::Document}}\subsubsection[XAPIAN\_\-DEPRECATED]{\setlength{\rightskip}{0pt plus 5cm}Xapian::Document::XAPIAN\_\-DEPRECATED (void  {\em add\_\-term\_\-nopos}(const std::string \&term, Xapian::termcount wdfinc=1))}}\label{classXapian_1_1Document_4d3394c267aaa47c007d6996f39f9b3e}Old name for \hyperlink{classXapian_1_1Document_730bb59dda98f19c61fe67360f0adb3a}{add\_\-term()}. \begin{Desc}\item[\hyperlink{deprecated__deprecated000003}{Deprecated}]This method is deprecated and present only for backward compatibility. Use \hyperlink{classXapian_1_1Document_730bb59dda98f19c61fe67360f0adb3a}{add\_\-term()} instead. \end{Desc}The documentation for this class was generated from the following file:\begin{CompactItemize}\item include/xapian/\hyperlink{document_8h}{document.h}\end{CompactItemize}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -