1 //------------------------------------------------------------------------------ 2 // <auto-generated /> 3 // 4 // This file was automatically generated by SWIG (http://www.swig.org). 5 // Version 3.0.13 6 // 7 // Do not make changes to this file unless you know what you are doing--modify 8 // the SWIG interface file instead. 9 //------------------------------------------------------------------------------ 10 11 namespace Xapian { 12 13 public class MSet : global::System.IDisposable { 14 private global::System.Runtime.InteropServices.HandleRef swigCPtr; 15 protected bool swigCMemOwn; 16 MSet(global::System.IntPtr cPtr, bool cMemoryOwn)17 internal MSet(global::System.IntPtr cPtr, bool cMemoryOwn) { 18 swigCMemOwn = cMemoryOwn; 19 swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr); 20 } 21 getCPtr(MSet obj)22 internal static global::System.Runtime.InteropServices.HandleRef getCPtr(MSet obj) { 23 return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr; 24 } 25 ~MSet()26 ~MSet() { 27 Dispose(); 28 } 29 Dispose()30 public virtual void Dispose() { 31 lock(this) { 32 if (swigCPtr.Handle != global::System.IntPtr.Zero) { 33 if (swigCMemOwn) { 34 swigCMemOwn = false; 35 XapianPINVOKE.delete_MSet(swigCPtr); 36 } 37 swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero); 38 } 39 global::System.GC.SuppressFinalize(this); 40 } 41 } 42 MSet()43 public MSet() : this(XapianPINVOKE.new_MSet(), true) { 44 if (XapianPINVOKE.SWIGPendingException.Pending) throw XapianPINVOKE.SWIGPendingException.Retrieve(); 45 } 46 ConvertToPercent(double weight)47 public int ConvertToPercent(double weight) { 48 int ret = XapianPINVOKE.MSet_ConvertToPercent__SWIG_0(swigCPtr, weight); 49 if (XapianPINVOKE.SWIGPendingException.Pending) throw XapianPINVOKE.SWIGPendingException.Retrieve(); 50 return ret; 51 } 52 ConvertToPercent(MSetIterator it)53 public int ConvertToPercent(MSetIterator it) { 54 int ret = XapianPINVOKE.MSet_ConvertToPercent__SWIG_1(swigCPtr, MSetIterator.getCPtr(it)); 55 if (XapianPINVOKE.SWIGPendingException.Pending) throw XapianPINVOKE.SWIGPendingException.Retrieve(); 56 return ret; 57 } 58 GetTermFreq(string term)59 public uint GetTermFreq(string term) { 60 uint ret = XapianPINVOKE.MSet_GetTermFreq(swigCPtr, term); 61 if (XapianPINVOKE.SWIGPendingException.Pending) throw XapianPINVOKE.SWIGPendingException.Retrieve(); 62 return ret; 63 } 64 GetTermWeight(string term)65 public double GetTermWeight(string term) { 66 double ret = XapianPINVOKE.MSet_GetTermWeight(swigCPtr, term); 67 if (XapianPINVOKE.SWIGPendingException.Pending) throw XapianPINVOKE.SWIGPendingException.Retrieve(); 68 return ret; 69 } 70 GetFirstItem()71 public uint GetFirstItem() { 72 uint ret = XapianPINVOKE.MSet_GetFirstItem(swigCPtr); 73 if (XapianPINVOKE.SWIGPendingException.Pending) throw XapianPINVOKE.SWIGPendingException.Retrieve(); 74 return ret; 75 } 76 GetMatchesLowerBound()77 public uint GetMatchesLowerBound() { 78 uint ret = XapianPINVOKE.MSet_GetMatchesLowerBound(swigCPtr); 79 if (XapianPINVOKE.SWIGPendingException.Pending) throw XapianPINVOKE.SWIGPendingException.Retrieve(); 80 return ret; 81 } 82 GetMatchesEstimated()83 public uint GetMatchesEstimated() { 84 uint ret = XapianPINVOKE.MSet_GetMatchesEstimated(swigCPtr); 85 if (XapianPINVOKE.SWIGPendingException.Pending) throw XapianPINVOKE.SWIGPendingException.Retrieve(); 86 return ret; 87 } 88 GetMatchesUpperBound()89 public uint GetMatchesUpperBound() { 90 uint ret = XapianPINVOKE.MSet_GetMatchesUpperBound(swigCPtr); 91 if (XapianPINVOKE.SWIGPendingException.Pending) throw XapianPINVOKE.SWIGPendingException.Retrieve(); 92 return ret; 93 } 94 GetUncollapsedMatchesLowerBound()95 public uint GetUncollapsedMatchesLowerBound() { 96 uint ret = XapianPINVOKE.MSet_GetUncollapsedMatchesLowerBound(swigCPtr); 97 if (XapianPINVOKE.SWIGPendingException.Pending) throw XapianPINVOKE.SWIGPendingException.Retrieve(); 98 return ret; 99 } 100 GetUncollapsedMatchesEstimated()101 public uint GetUncollapsedMatchesEstimated() { 102 uint ret = XapianPINVOKE.MSet_GetUncollapsedMatchesEstimated(swigCPtr); 103 if (XapianPINVOKE.SWIGPendingException.Pending) throw XapianPINVOKE.SWIGPendingException.Retrieve(); 104 return ret; 105 } 106 GetUncollapsedMatchesUpperBound()107 public uint GetUncollapsedMatchesUpperBound() { 108 uint ret = XapianPINVOKE.MSet_GetUncollapsedMatchesUpperBound(swigCPtr); 109 if (XapianPINVOKE.SWIGPendingException.Pending) throw XapianPINVOKE.SWIGPendingException.Retrieve(); 110 return ret; 111 } 112 GetMaxAttained()113 public double GetMaxAttained() { 114 double ret = XapianPINVOKE.MSet_GetMaxAttained(swigCPtr); 115 if (XapianPINVOKE.SWIGPendingException.Pending) throw XapianPINVOKE.SWIGPendingException.Retrieve(); 116 return ret; 117 } 118 GetMaxPossible()119 public double GetMaxPossible() { 120 double ret = XapianPINVOKE.MSet_GetMaxPossible(swigCPtr); 121 if (XapianPINVOKE.SWIGPendingException.Pending) throw XapianPINVOKE.SWIGPendingException.Retrieve(); 122 return ret; 123 } 124 Snippet(string text, uint length, Stem stemmer, uint flags, string hi_start, string hi_end, string omit)125 public string Snippet(string text, uint length, Stem stemmer, uint flags, string hi_start, string hi_end, string omit) { 126 string ret = XapianPINVOKE.MSet_Snippet__SWIG_0(swigCPtr, text, length, Stem.getCPtr(stemmer), flags, hi_start, hi_end, omit); 127 if (XapianPINVOKE.SWIGPendingException.Pending) throw XapianPINVOKE.SWIGPendingException.Retrieve(); 128 return ret; 129 } 130 Snippet(string text, uint length, Stem stemmer, uint flags, string hi_start, string hi_end)131 public string Snippet(string text, uint length, Stem stemmer, uint flags, string hi_start, string hi_end) { 132 string ret = XapianPINVOKE.MSet_Snippet__SWIG_1(swigCPtr, text, length, Stem.getCPtr(stemmer), flags, hi_start, hi_end); 133 if (XapianPINVOKE.SWIGPendingException.Pending) throw XapianPINVOKE.SWIGPendingException.Retrieve(); 134 return ret; 135 } 136 Snippet(string text, uint length, Stem stemmer, uint flags, string hi_start)137 public string Snippet(string text, uint length, Stem stemmer, uint flags, string hi_start) { 138 string ret = XapianPINVOKE.MSet_Snippet__SWIG_2(swigCPtr, text, length, Stem.getCPtr(stemmer), flags, hi_start); 139 if (XapianPINVOKE.SWIGPendingException.Pending) throw XapianPINVOKE.SWIGPendingException.Retrieve(); 140 return ret; 141 } 142 Snippet(string text, uint length, Stem stemmer, uint flags)143 public string Snippet(string text, uint length, Stem stemmer, uint flags) { 144 string ret = XapianPINVOKE.MSet_Snippet__SWIG_3(swigCPtr, text, length, Stem.getCPtr(stemmer), flags); 145 if (XapianPINVOKE.SWIGPendingException.Pending) throw XapianPINVOKE.SWIGPendingException.Retrieve(); 146 return ret; 147 } 148 Snippet(string text, uint length, Stem stemmer)149 public string Snippet(string text, uint length, Stem stemmer) { 150 string ret = XapianPINVOKE.MSet_Snippet__SWIG_4(swigCPtr, text, length, Stem.getCPtr(stemmer)); 151 if (XapianPINVOKE.SWIGPendingException.Pending) throw XapianPINVOKE.SWIGPendingException.Retrieve(); 152 return ret; 153 } 154 Snippet(string text, uint length)155 public string Snippet(string text, uint length) { 156 string ret = XapianPINVOKE.MSet_Snippet__SWIG_5(swigCPtr, text, length); 157 if (XapianPINVOKE.SWIGPendingException.Pending) throw XapianPINVOKE.SWIGPendingException.Retrieve(); 158 return ret; 159 } 160 Snippet(string text)161 public string Snippet(string text) { 162 string ret = XapianPINVOKE.MSet_Snippet__SWIG_6(swigCPtr, text); 163 if (XapianPINVOKE.SWIGPendingException.Pending) throw XapianPINVOKE.SWIGPendingException.Retrieve(); 164 return ret; 165 } 166 Fetch(MSetIterator begin, MSetIterator end)167 public void Fetch(MSetIterator begin, MSetIterator end) { 168 XapianPINVOKE.MSet_Fetch__SWIG_0(swigCPtr, MSetIterator.getCPtr(begin), MSetIterator.getCPtr(end)); 169 if (XapianPINVOKE.SWIGPendingException.Pending) throw XapianPINVOKE.SWIGPendingException.Retrieve(); 170 } 171 Fetch(MSetIterator item)172 public void Fetch(MSetIterator item) { 173 XapianPINVOKE.MSet_Fetch__SWIG_1(swigCPtr, MSetIterator.getCPtr(item)); 174 if (XapianPINVOKE.SWIGPendingException.Pending) throw XapianPINVOKE.SWIGPendingException.Retrieve(); 175 } 176 Fetch()177 public void Fetch() { 178 XapianPINVOKE.MSet_Fetch__SWIG_2(swigCPtr); 179 if (XapianPINVOKE.SWIGPendingException.Pending) throw XapianPINVOKE.SWIGPendingException.Retrieve(); 180 } 181 Size()182 public uint Size() { 183 uint ret = XapianPINVOKE.MSet_Size(swigCPtr); 184 if (XapianPINVOKE.SWIGPendingException.Pending) throw XapianPINVOKE.SWIGPendingException.Retrieve(); 185 return ret; 186 } 187 Empty()188 public bool Empty() { 189 bool ret = XapianPINVOKE.MSet_Empty(swigCPtr); 190 if (XapianPINVOKE.SWIGPendingException.Pending) throw XapianPINVOKE.SWIGPendingException.Retrieve(); 191 return ret; 192 } 193 Begin()194 public MSetIterator Begin() { 195 MSetIterator ret = new MSetIterator(XapianPINVOKE.MSet_Begin(swigCPtr), true); 196 if (XapianPINVOKE.SWIGPendingException.Pending) throw XapianPINVOKE.SWIGPendingException.Retrieve(); 197 return ret; 198 } 199 End()200 public MSetIterator End() { 201 MSetIterator ret = new MSetIterator(XapianPINVOKE.MSet_End(swigCPtr), true); 202 if (XapianPINVOKE.SWIGPendingException.Pending) throw XapianPINVOKE.SWIGPendingException.Retrieve(); 203 return ret; 204 } 205 Back()206 public MSetIterator Back() { 207 MSetIterator ret = new MSetIterator(XapianPINVOKE.MSet_Back(swigCPtr), true); 208 if (XapianPINVOKE.SWIGPendingException.Pending) throw XapianPINVOKE.SWIGPendingException.Retrieve(); 209 return ret; 210 } 211 GetDescription()212 public string GetDescription() { 213 string ret = XapianPINVOKE.MSet_GetDescription(swigCPtr); 214 if (XapianPINVOKE.SWIGPendingException.Pending) throw XapianPINVOKE.SWIGPendingException.Retrieve(); 215 return ret; 216 } 217 GetDocId(uint i)218 public uint GetDocId(uint i) { 219 uint ret = XapianPINVOKE.MSet_GetDocId(swigCPtr, i); 220 if (XapianPINVOKE.SWIGPendingException.Pending) throw XapianPINVOKE.SWIGPendingException.Retrieve(); 221 return ret; 222 } 223 GetDocument(uint i)224 public Document GetDocument(uint i) { 225 Document ret = new Document(XapianPINVOKE.MSet_GetDocument(swigCPtr, i), true); 226 if (XapianPINVOKE.SWIGPendingException.Pending) throw XapianPINVOKE.SWIGPendingException.Retrieve(); 227 return ret; 228 } 229 GetHit(uint i)230 public MSetIterator GetHit(uint i) { 231 MSetIterator ret = new MSetIterator(XapianPINVOKE.MSet_GetHit(swigCPtr, i), true); 232 if (XapianPINVOKE.SWIGPendingException.Pending) throw XapianPINVOKE.SWIGPendingException.Retrieve(); 233 return ret; 234 } 235 GetDocumentPercentage(uint i)236 public int GetDocumentPercentage(uint i) { 237 int ret = XapianPINVOKE.MSet_GetDocumentPercentage(swigCPtr, i); 238 if (XapianPINVOKE.SWIGPendingException.Pending) throw XapianPINVOKE.SWIGPendingException.Retrieve(); 239 return ret; 240 } 241 242 public static readonly int SNIPPET_BACKGROUND_MODEL = XapianPINVOKE.MSet_SNIPPET_BACKGROUND_MODEL_get(); 243 public static readonly int SNIPPET_EXHAUSTIVE = XapianPINVOKE.MSet_SNIPPET_EXHAUSTIVE_get(); 244 public static readonly int SNIPPET_EMPTY_WITHOUT_MATCH = XapianPINVOKE.MSet_SNIPPET_EMPTY_WITHOUT_MATCH_get(); 245 public static readonly int SNIPPET_CJK_NGRAM = XapianPINVOKE.MSet_SNIPPET_CJK_NGRAM_get(); 246 247 } 248 249 } 250