Revision 55755
Added by Claudio Atzori about 5 years ago
IndexQueryFactory.java | ||
---|---|---|
3 | 3 |
import java.util.List; |
4 | 4 |
import java.util.Map; |
5 | 5 |
|
6 |
import eu.dnetlib.functionality.cql.CqlTranslator; |
|
7 |
import eu.dnetlib.functionality.cql.CqlValueTransformerMap; |
|
8 |
import eu.dnetlib.functionality.cql.lucene.TranslatedQuery; |
|
9 |
import org.springframework.beans.factory.annotation.Autowired; |
|
10 |
|
|
11 | 6 |
import com.google.common.collect.BiMap; |
12 | 7 |
import com.google.common.collect.Lists; |
13 | 8 |
import com.google.common.collect.Maps; |
14 |
|
|
15 | 9 |
import eu.dnetlib.data.provision.index.rmi.IndexServiceException; |
16 |
import eu.dnetlib.functionality.index.client.AbstractIndexClient; |
|
10 |
import eu.dnetlib.functionality.cql.CqlTranslator; |
|
11 |
import eu.dnetlib.functionality.cql.lucene.TranslatedQuery; |
|
12 |
import eu.dnetlib.functionality.index.client.IndexClient; |
|
17 | 13 |
import eu.dnetlib.functionality.index.client.IndexClientException; |
18 |
|
|
19 | 14 |
import eu.dnetlib.functionality.index.query.Pruner.Result; |
20 | 15 |
import eu.dnetlib.functionality.index.utils.MetadataReference; |
16 |
import org.springframework.beans.factory.annotation.Autowired; |
|
21 | 17 |
|
22 | 18 |
/** |
23 | 19 |
* A factory for creating IndexQuery objects. |
... | ... | |
69 | 65 |
* the index query |
70 | 66 |
* @return the index query |
71 | 67 |
*/ |
72 |
protected abstract IndexQuery setQueryOptions(final IndexQuery indexQuery, final AbstractIndexClient client);
|
|
68 |
protected abstract IndexQuery setQueryOptions(final IndexQuery indexQuery, final IndexClient client); |
|
73 | 69 |
|
74 | 70 |
/** |
75 | 71 |
* Gets the index query. |
... | ... | |
84 | 80 |
* @throws IndexServiceException |
85 | 81 |
* the index service exception |
86 | 82 |
*/ |
87 |
public IndexQuery getIndexQuery(final QueryLanguage lang, final String query, final AbstractIndexClient client, final MetadataReference mdRef)
|
|
83 |
public IndexQuery getIndexQuery(final QueryLanguage lang, final String query, final IndexClient client, final MetadataReference mdRef) |
|
88 | 84 |
throws IndexClientException { |
89 | 85 |
|
90 | 86 |
String myquery = query; |
Also available in: Unified diff
reintegrated solr75 branch (-r53777:HEAD)