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