Skip to content

Instantly share code, notes, and snippets.

@mkash32
Created April 2, 2016 07:02
Show Gist options
  • Save mkash32/25f04672f4692ccdc94c78c35575dd2e to your computer and use it in GitHub Desktop.
Save mkash32/25f04672f4692ccdc94c78c35575dd2e to your computer and use it in GitHub Desktop.
class MatchDescriptor
{
public:
MatchDescriptor(jlong docid_, jlong rank_, jint percent_, jdouble weight_, Xapian::Document document_): docid(docid_), rank(rank_), percent(percent_), weight(weight_), document(document_){}
jlong get_docid() { return docid; }
int get_percent() { return percent; }
jlong get_rank() { return rank; }
jdouble get_weight() { return weight; }
Xapian::Document get_document() { return document; }
private:
jlong docid, rank;
jint percent;
jdouble weight;
Xapian::Document document;
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment