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.
1 |
<br /> <br /> <Connector ... <b>URIEncoding="UTF-8"/></b><br /> ...<br /> <br /> <br /><br /> |
1 |
http://host:port/solr/core/update?stream.body=*:*&commit=true<br /></code><br /> |
Or by posting data xml data :-
1 |
*:* |
Cleaning data using Solrj :-
1 |
SolrServer server = null;<br />try {<br /> server = new CommonsHttpSolrServer(masterIndexUrl);<br /> server.deleteByQuery("*:*");<br /> server.commit(true, true);<br /> server.optimize(true, true); <br />} catch (Exception e) {<br /> try {<br /> server.rollback(); <br /> } catch (Exception e1) {<br /> <br /> }<br />}<br /> |
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)
1 |
<br /><br /><br /><br /><!-- Copy to a string type field --><br /><br /> |
1 |
<!-- Fields defination --> <br /> <br /> <br /><br /><br /><!-- Copying subject field to subject_text field --> <br /><br /><br /><!-- The subject_text cannot feed into text.So you would land up with no subject being copied --> <br /> <br /> |
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.