3 // SearchableDocument.cs: Abstracts our model of document from the Lucene Document
5 // Author: Mario Sopena
7 using Monodoc.Lucene.Net.Documents;
10 struct SearchableDocument {
13 public string hottext;
15 public string examples;
17 public Document LuceneDoc {
19 Document doc = new Document ();
20 doc.Add (Field.UnIndexed ("title", title));
21 doc.Add (Field.UnIndexed ("url", url));
22 doc.Add (Field.UnStored ("hottext", hottext));
23 doc.Add (Field.UnStored ("text", text));
24 doc.Add (Field.UnStored ("examples", examples));