Solr – Getting facet counts without returning search results
Setting facet=true will enable faceting and setting rows=0 will prevent any results being returned. Conveniently the numFound will show you how many results were found.
Setting facet=true will enable faceting and setting rows=0 will prevent any results being returned. Conveniently the numFound will show you how many results were found.
If you want to get last week publications you can do somehting like: &fq=published_date:[NOW-7DAY/DAY TO NOW] But if you want a concrete date you must do it in the SOLR date format: &fq=published_date:[2013-07-17T00:00:00Z TO NOW] Last but not least. use [ ] for inclusive ranges use { } for exclusive ranges you can mix them … Read more
You can use boolean operators and search on individual fields. q=type:furniture AND location:office If the values are fixed, it is better to use Filter Queries for Performance. fq=type:furniture AND location:office
THIS HOLDS FOR SOLR VERSIONS < 5.0 Try [solr url]/update?commit=true For example, with an URL like the SOLR example defaults, from the same machine, http://localhost:8983/solr/update?commit=true should do it. FOR SOLR VERSIONS >= 5.0 http://localhost:8983/solr/[collection_name]/update?commit=true
From the SolrCloud Documentation Collection: A single search index. Shard: A logical section of a single collection (also called Slice). Sometimes people will talk about “Shard” in a physical sense (a manifestation of a logical shard) Replica: A physical manifestation of a logical Shard, implemented as a single Lucene index on a SolrCore Leader: One … Read more
The fields as default defined in the solr schema are vastly different. String stores a word/sentence as an exact string without performing tokenization etc. Commonly useful for storing exact matches, e.g, for facetting. Text typically performs tokenization, and secondary processing (such as lower-casing etc.). Useful for all scenarios when we want to match part of … Read more
On the Solr Admin page click on [INFO]. The next screen will have the version. (For me, the Solr admin page is located here: http://{host-name-or-ip}:{port}/solr/admin, I found I was dealing with an older version. Solr Specification Version: 1.4.0 Solr Implementation Version: 1.4.0 833479)
Use one of the queries below in the Document tab of Solr Admin UI: XML: <delete><query>*:*</query></delete> JSON: {‘delete’: {‘query’: ‘*:*’}} Make sure to select the Document Type drop down to Solr Command (raw XML or JSON).
That is correct. Typically you will want your field to be either indexed or stored or both. If you set both to false, that field will not be available in your Solr docs (either for searching or for displaying). See Alexandre’s answer for the special cases when you will want to set both to false. … Read more
If you want to clean up Solr index – you can fire http url – http://host:port/solr/[core name]/update?stream.body=<delete><query>*:*</query></delete>&commit=true (replace [core name] with the name of the core you want to delete from). Or use this if posting data xml data: <delete><query>*:*</query></delete> Be sure you use commit=true to commit the changes Don’t have much idea with clearing … Read more