Dear Wiki user, You have subscribed to a wiki page or wiki category on "Solr Wiki" for change notification.
The following page has been changed by JasonRutherglen: http://wiki.apache.org/solr/BloomIndexComponent ------------------------------------------------------------------------------ <!> ["Solr1.5"] - The !BloomIndexComponent !SearchComponent enables a fast and memory efficient membership test of an element in a read only set. False positives may be returned which can be tuned using a given probability (see the errorrate parameter). + The !BloomIndexComponent !SearchComponent enables a fast and memory efficient membership test of an element in a read only set. False positives may be returned which can be tuned using a given probability (see the errorrate parameter of solrconfig.xml). - The Solr implementation generates the Bloom Filter per Lucene segment for a particular field by iterating over the term dictionary. + The Solr implementation generates the Bloom Filter per Lucene segment for a specified field by iterating over the term dictionary. see [http://en.wikipedia.org/wiki/Bloom_filter Wikipedia Bloom Filter] or [http://hadoop.apache.org/common/docs/current/api/org/apache/hadoop/util/bloom/BloomFilter.html Hadoop BloomFilter] @@ -23, +23 @@ == Non-distributed Negative == {{{ - http://localhost:8983/solr/bloom?q=id:1 + http://localhost:8080/solr/bloom?q=id:1 }}} Check the membership of the value 1 in the field id (which does not exist). @@ -45, +45 @@ == Non-distributed Positive == {{{ - http://localhost:8983/solr/bloom?q=id:1 + http://localhost:8080/solr/bloom?q=id:1 }}} Check the membership of the value 1 in the field id (which does exist). @@ -65, +65 @@ </response> }}} + == Distributed Positive == + {{{ + http://localhost:8080/solr/bloom?shards.qt=/bloom&q=id:1&shards=localhost:8080/solr,localhost:8081/solr + }}} + {{{ + <response> + <lst name="responseHeader"> + <int name="status">0</int> + <int name="QTime">88</int> + </lst> + <lst name="host"> + <lst name="responseHeader"> + <int name="status">0</int> + <int name="QTime">1</int> + </lst> + <str name="exists">true</str> + <str name="segment">_3</str> + <str name="field">id</str> + <str name="value">1</str> + <str name="host">jason-laptop</str> + </lst> + <str name="exists">true</str> + <str name="distributed">true</str> + </response> + }}} + == Distributed Negative == + {{{ + http://localhost:8080/solr/bloom?shards.qt=/bloom&q=id:9999&shards=localhost:8080/solr,localhost:8081/solr + }}} + {{{ + <response> + <lst name="responseHeader"> + <int name="status">0</int> + <int name="QTime">18</int> + </lst> + <str name="exists">false</str> + <str name="distributed">true</str> + </response> + }}} == solrconfig.xml == {{{ <!-- Default Bloom Filter Implementation --> <searchComponent name="bloom" class="org.apache.solr.handler.component.BloomIndexComponent"> + <!-- The following are all defaults --> <str name="dir">bloom</str> <!-- optional --> <str name="field">id</str> <!-- optional --> <boolean name="autoreload">true</boolean> <!-- optional -->
