Revision 43749
Added by Claudio Atzori about 8 years ago
modules/dnet-index-solr-client/trunk/src/main/java/eu/dnetlib/functionality/index/solr/cql/SolrTypeBasedCqlValueTransformerMap.java | ||
---|---|---|
2 | 2 |
|
3 | 3 |
import java.util.Map; |
4 | 4 |
|
5 |
import eu.dnetlib.functionality.cql.CqlValueTransformerMap; |
|
5 | 6 |
import org.apache.commons.logging.Log; |
6 | 7 |
import org.apache.commons.logging.LogFactory; |
7 | 8 |
import org.apache.solr.common.SolrException; |
8 | 9 |
|
9 |
import eu.dnetlib.functionality.index.cql.CqlValueTransformerMap; |
|
10 | 10 |
import eu.dnetlib.functionality.index.model.Any.ValueType; |
11 | 11 |
import eu.dnetlib.miscutils.functional.IdentityFunction; |
12 | 12 |
import eu.dnetlib.miscutils.functional.UnaryFunction; |
... | ... | |
36 | 36 |
|
37 | 37 |
/** |
38 | 38 |
* Create value transformer map bound to a specific schema |
39 |
* |
|
40 |
* @param indexSchema
|
|
39 |
* @param schema
|
|
40 |
* @param transformerMap
|
|
41 | 41 |
*/ |
42 | 42 |
public SolrTypeBasedCqlValueTransformerMap(final Map<String, ValueType> schema, final Map<String, UnaryFunction<String, String>> transformerMap) { |
43 | 43 |
this.schema = schema; |
... | ... | |
47 | 47 |
/** |
48 | 48 |
* {@inheritDoc} |
49 | 49 |
* |
50 |
* @see eu.dnetlib.functionality.index.cql.CqlValueTransformerMap#transformerFor(java.lang.String)
|
|
50 |
* @see eu.dnetlib.functionality.cql.CqlValueTransformerMap#transformerFor(java.lang.String) |
|
51 | 51 |
*/ |
52 | 52 |
@Override |
53 | 53 |
public UnaryFunction<String, String> transformerFor(final String fieldName) { |
... | ... | |
66 | 66 |
return new IdentityFunction<String>(); |
67 | 67 |
} |
68 | 68 |
|
69 |
} |
|
69 |
} |
modules/dnet-index-solr-client/trunk/src/main/java/eu/dnetlib/functionality/index/query/SolrIndexQueryFactory.java | ||
---|---|---|
2 | 2 |
|
3 | 3 |
import java.util.Arrays; |
4 | 4 |
|
5 |
import eu.dnetlib.functionality.cql.lucene.TranslatedQuery; |
|
5 | 6 |
import org.apache.commons.logging.Log; |
6 | 7 |
import org.apache.commons.logging.LogFactory; |
7 | 8 |
|
8 | 9 |
import eu.dnetlib.functionality.index.client.AbstractIndexClient; |
9 |
import eu.dnetlib.functionality.index.cql.TranslatedQuery; |
|
10 | 10 |
import eu.dnetlib.functionality.index.query.Pruner.Result; |
11 | 11 |
import eu.dnetlib.functionality.index.solr.utils.HighlightUtils; |
12 | 12 |
import eu.dnetlib.functionality.index.utils.IndexFieldUtility; |
modules/dnet-index-solr-client/trunk/src/main/java/eu/dnetlib/functionality/index/query/SolrIndexQuery.java | ||
---|---|---|
3 | 3 |
import java.util.List; |
4 | 4 |
import java.util.Map; |
5 | 5 |
|
6 |
import eu.dnetlib.functionality.cql.lucene.QueryOptions; |
|
7 |
import eu.dnetlib.functionality.cql.lucene.TranslatedQuery; |
|
8 |
import eu.dnetlib.functionality.index.utils.IndexFieldUtility; |
|
6 | 9 |
import org.apache.commons.logging.Log; |
7 | 10 |
import org.apache.commons.logging.LogFactory; |
8 | 11 |
import org.apache.solr.client.solrj.SolrQuery; |
9 | 12 |
import org.apache.solr.common.params.ModifiableSolrParams; |
10 | 13 |
import org.apache.solr.common.params.SolrParams; |
11 | 14 |
|
12 |
import eu.dnetlib.functionality.index.cql.QueryOptions; |
|
13 |
import eu.dnetlib.functionality.index.cql.TranslatedQuery; |
|
14 |
import eu.dnetlib.functionality.index.utils.IndexFieldUtility; |
|
15 |
|
|
16 | 15 |
/** |
17 | 16 |
* The Class SolrIndexQuery. |
18 | 17 |
* |
... | ... | |
106 | 105 |
/** |
107 | 106 |
* Checks if is all. |
108 | 107 |
* |
109 |
* @param dsId |
|
108 |
* @param dsIds
|
|
110 | 109 |
* the ds id |
111 | 110 |
* @return true, if is all |
112 | 111 |
*/ |
modules/dnet-index-solr-client/trunk/src/main/java/eu/dnetlib/functionality/index/client/clients/solr/SolrIndexClient.java | ||
---|---|---|
6 | 6 |
import java.util.List; |
7 | 7 |
import java.util.Map; |
8 | 8 |
|
9 |
import eu.dnetlib.functionality.cql.CqlValueTransformerMap; |
|
9 | 10 |
import org.apache.commons.logging.Log; |
10 | 11 |
import org.apache.commons.logging.LogFactory; |
11 | 12 |
import org.apache.solr.client.solrj.SolrServer; |
... | ... | |
28 | 29 |
import eu.dnetlib.functionality.index.client.response.BrowseEntry; |
29 | 30 |
import eu.dnetlib.functionality.index.client.response.BrowseValueEntry; |
30 | 31 |
import eu.dnetlib.functionality.index.client.response.LookupResponse; |
31 |
import eu.dnetlib.functionality.index.cql.CqlValueTransformerMap; |
|
32 |
|
|
32 | 33 |
import eu.dnetlib.functionality.index.model.Any.ValueType; |
33 | 34 |
import eu.dnetlib.functionality.index.query.IndexQueryFactory; |
34 | 35 |
import eu.dnetlib.functionality.index.query.QueryLanguage; |
... | ... | |
116 | 117 |
* |
117 | 118 |
* @throws IndexClientException |
118 | 119 |
* |
119 |
* @see eu.dnetlib.functionality.index.client.IndexClient#browse(java.lang.String, int)
|
|
120 |
* @see eu.dnetlib.functionality.index.client.IndexClient#browse(String, List, int)
|
|
120 | 121 |
*/ |
121 | 122 |
@Override |
122 | 123 |
public List<BrowseEntry> browse(final String query, final List<String> browseFields, final int max) throws IndexClientException { |
... | ... | |
130 | 131 |
* |
131 | 132 |
* @throws IndexClientException |
132 | 133 |
* |
133 |
* @see eu.dnetlib.functionality.index.client.IndexClient#browse(java.lang.String, int)
|
|
134 |
* @see eu.dnetlib.functionality.index.client.IndexClient#browse(String, List, int, List)
|
|
134 | 135 |
*/ |
135 | 136 |
@Override |
136 | 137 |
public List<BrowseEntry> browse(final String query, final List<String> browseFields, final int max, final List<String> filterQuery) |
modules/dnet-index-solr-client/trunk/pom.xml | ||
---|---|---|
10 | 10 |
<groupId>eu.dnetlib</groupId> |
11 | 11 |
<artifactId>dnet-index-solr-client</artifactId> |
12 | 12 |
<packaging>jar</packaging> |
13 |
<version>2.3.1-SNAPSHOT</version>
|
|
13 |
<version>2.4.0-SNAPSHOT</version>
|
|
14 | 14 |
<scm> |
15 | 15 |
<developerConnection>scm:svn:https://svn.driver.research-infrastructures.eu/driver/dnet40/modules/dnet-index-solr-client/trunk</developerConnection> |
16 | 16 |
</scm> |
Also available in: Unified diff
bumped version