1
14
15 package com.liferay.portal.kernel.search;
16
17 import java.io.Serializable;
18
19 import java.util.List;
20
21
26 public interface Hits extends Serializable {
27
28 public Document doc(int n);
29
30 public Document[] getDocs();
31
32 public int getLength();
33
34 public String[] getQueryTerms();
35
36 public float[] getScores();
37
38 public float getSearchTime();
39
40 public String[] getSnippets();
41
42 public long getStart();
43
44 public float score(int n);
45
46 public void setDocs(Document[] docs);
47
48 public void setLength(int length);
49
50 public void setQueryTerms(String[] queryTerms);
51
52 public void setScores(float[] scores);
53
54 public void setScores(Float[] scores);
55
56 public void setSearchTime(float time);
57
58 public void setSnippets(String[] snippets);
59
60 public void setStart(long start);
61
62 public String snippet(int n);
63
64 public List<Document> toList();
65
66 }