1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19 package org.apache.maven.index;
20
21 import java.io.IOException;
22 import java.util.Collection;
23 import java.util.Comparator;
24 import java.util.Set;
25
26 import org.apache.lucene.search.Query;
27 import org.apache.maven.index.context.IndexingContext;
28
29
30
31
32
33
34
35
36 public interface SearchEngine {
37 @Deprecated
38 Set<ArtifactInfo> searchFlat(
39 Comparator<ArtifactInfo> artifactInfoComparator, IndexingContext indexingContext, Query query)
40 throws IOException;
41
42 @Deprecated
43 Set<ArtifactInfo> searchFlat(
44 Comparator<ArtifactInfo> artifactInfoComparator, Collection<IndexingContext> indexingContexts, Query query)
45 throws IOException;
46
47
48
49
50 FlatSearchResponse searchFlatPaged(FlatSearchRequest request, Collection<IndexingContext> indexingContexts)
51 throws IOException;
52
53
54
55
56 IteratorSearchResponse searchIteratorPaged(
57 IteratorSearchRequest request, Collection<IndexingContext> indexingContexts) throws IOException;
58
59
60
61
62 GroupedSearchResponse searchGrouped(GroupedSearchRequest request, Collection<IndexingContext> indexingContexts)
63 throws IOException;
64
65
66
67
68 FlatSearchResponse forceSearchFlatPaged(FlatSearchRequest request, Collection<IndexingContext> indexingContexts)
69 throws IOException;
70
71
72
73
74 IteratorSearchResponse forceSearchIteratorPaged(
75 IteratorSearchRequest request, Collection<IndexingContext> indexingContexts) throws IOException;
76
77
78
79
80 GroupedSearchResponse forceSearchGrouped(GroupedSearchRequest request, Collection<IndexingContext> indexingContexts)
81 throws IOException;
82 }