diff options
author | James Moger <james.moger@gitblit.com> | 2012-01-24 22:49:53 -0500 |
---|---|---|
committer | James Moger <james.moger@gitblit.com> | 2012-01-24 22:49:53 -0500 |
commit | 06ff61c04db32abc7ba4bbaeee604482c343152e (patch) | |
tree | 4ed670b91f61226fc20ed93a191fee7f9b340828 /src/com/gitblit/models/SearchResult.java | |
parent | 69a55934079b299740fa4679fbbd9faeb8319726 (diff) | |
download | gitblit-06ff61c04db32abc7ba4bbaeee604482c343152e.tar.gz gitblit-06ff61c04db32abc7ba4bbaeee604482c343152e.zip |
Fairly functional Lucene backend for commits, blobs, and issues
Diffstat (limited to 'src/com/gitblit/models/SearchResult.java')
-rw-r--r-- | src/com/gitblit/models/SearchResult.java | 42 |
1 files changed, 42 insertions, 0 deletions
diff --git a/src/com/gitblit/models/SearchResult.java b/src/com/gitblit/models/SearchResult.java new file mode 100644 index 00000000..44207f08 --- /dev/null +++ b/src/com/gitblit/models/SearchResult.java @@ -0,0 +1,42 @@ +package com.gitblit.models;
+
+import java.io.Serializable;
+import java.util.Date;
+import java.util.List;
+
+import com.gitblit.utils.LuceneUtils.ObjectType;
+
+/**
+ * Model class that represents a search result.
+ *
+ * @author James Moger
+ *
+ */
+public class SearchResult implements Serializable {
+
+ private static final long serialVersionUID = 1L;
+
+ public float score;
+
+ public Date date;
+
+ public String author;
+
+ public String committer;
+
+ public String summary;
+
+ public String id;
+
+ public List<String> labels;
+
+ public ObjectType type;
+
+ public SearchResult() {
+ }
+
+ @Override
+ public String toString() {
+ return type.name() + ": " + id;
+ }
+}
\ No newline at end of file |