The distinct count of the facets is available with Solr 4.0 (as of writing).
The Solr patch SOLR-2242 would aid to provide with the number of facet terms.
The distinct count of the facets is available with Solr 4.0 (as of writing).
The Solr patch SOLR-2242 would aid to provide with the number of facet terms.
<Connector ... URIEncoding="UTF-8"/>
...
http://host:port/solr/core/update?stream.body=*:*&commit=true
Or by posting data xml data :-
*:*
Cleaning data using Solrj :-
SolrServer server = null;
try {
server = new CommonsHttpSolrServer(masterIndexUrl);
server.deleteByQuery("*:*");
server.commit(true, true);
server.optimize(true, true);
} catch (Exception e) {
try {
server.rollback();
} catch (Exception e1) {
}
}
Few key things to take into account when using fields for Sorting in Solr –
Documentation –
Sorting can be done on the “score” of the document, or on any multiValued=”false” indexed=”true” field provided that field is either non-tokenized (ie: has no Analyzer) or uses an Analyzer that only produces a single Term (ie: uses the KeywordTokenizer)
Solr Documentation @ http://wiki.apache.org/solr/SchemaXml#Copy_Fields quotes
The copy is done at the stream source level and no copy feeds into another copy.
So a copyfield cannot be a source of other copyfield tag.
The copyfield source must be an actual field, which has some value and does no cascade.