Xapian::Document(3)

πŸ’… NAME πŸ’…

Search::Xapian::Document β€” Document object.

Okay bestie, welcome to the Xapian::Document(3) page from the User Contributed Perl Documentation. This is the manual page for Search::Xapian::Document, and we’re about to get into it. ✨

πŸŽ€ DESCRIPTION πŸŽ€

This class represents a document in a Xapian database. That’s the whole main-character vibe of this class. πŸ’–

✨ METHODS ✨

  • new β€” Class constructor. Obviously the constructor, bestie.
  • clone β€” Return a clone of this class.
  • get_value (value_no) β€” Returns the value by the assigned number.
  • add_value <value_no> <value> β€” Set a value by value number.
  • remove_value <value_no> β€” Removes the value with the assigned number.
  • clear_values β€” Clear all set values.
  • get_data β€” Return all document data.
  • set_data <data> β€” Set all document data. This can be anything you like.
  • add_posting <term> <position> [<wdfinc>] β€” Adds a term at the given position. wdfinc defaults to 1.
  • remove_posting <term> <position> [<wdfdec>] β€” Removes a term from the given position. wdfdec defaults to 1.
  • add_term <term> [<wdfinc>] β€” Adds a term without positional information. wdfinc defaults to 1.
  • add_boolean_term <term> β€” Adds a term intended for boolean filtering (its wdf contribution will be 0).
  • remove_term <term> β€” Removes a term and all postings associated with it.
  • clear_terms β€” Remove all terms from the document.
  • termlist_count β€” Returns number of different terms in the document.
  • termlist_begin β€” Iterator for the terms in this document. Returns a Search::Xapian::TermIterator.
  • termlist_end β€” Equivalent end iterator for termlist_begin(). Returns a Search::Xapian::TermIterator.
  • values_count β€” Return number of defined values for this document.
  • values_begin β€” Return a Search::Xapian::ValueIterator pointing at the start of the values in this document.
  • values_end β€” Return a Search::Xapian::ValueIterator pointing at the end of the values in this document.
  • get_description β€” Return a description of this object.

🌈 SEE ALSO 🌈

  • Search::Xapian::Database β€” the cross-reference listed on this page.

Mwah, that’s the page, bestie. 🫢 This lil’ manual is from perl v5.42.0, dated 2022-02-28 β€” iconic, honestly. πŸ’‹

πŸ“¦ where this page comes from