Note that there are some explanatory texts on larger screens.

plurals
  1. POHow do I do an efficient faceted search using multi-valued fields with solr php client?
    primarykey
    data
    text
    <p>I'm attempting to setup a faceted search for my website, but am running into problems.</p> <p>The facet fields are setup as dynamic multiValued fields. Though most of the products only have one value for each faceted field (designated as fq_* where the * is the attributeid of the product attribute being stored), some have multiple values.</p> <p>Faceted search was working great - nice and fast until I tried accessing a category of our products where 1 or more of the products had multiple values on a faceted attribute. For this category (and others like it) I get an error from the php solr client: "500" Status: Internal Server Error.</p> <p>After searching for a while I found that setting facet.method equal to "enum" that it solved the error - however this increased the amount of time it took to load the page dramatically.</p> <p>Is there any way to do a faceted search like this with more efficiency? (I can handle it taking a little longer than the "fc" method, but not much).</p> <p>Thanks.</p> <p>Edit (here are the parameters):</p> <pre><code>$solr-&gt;search('categoryid:4810', 0, 15, array(8) { ["sort"]=&gt; string(17) "price_Default asc" ["facet"]=&gt; string(4) "true" ["facet.field"]=&gt; array(12) { [0]=&gt; string(7) "mfgname" [1]=&gt; string(14) "fq_33111116587" [2]=&gt; string(14) "fq_33111116586" [3]=&gt; string(14) "fq_33111114704" [4]=&gt; string(11) "fq_33113118" [5]=&gt; string(9) "fq_331472" [6]=&gt; string(10) "fq_3312052" [7]=&gt; string(9) "fq_331611" [8]=&gt; string(10) "fq_3312304" [9]=&gt; string(14) "fq_33111116919" [10]=&gt; string(9) "fq_331100" [11]=&gt; string(9) "fq_331710" } ["facet.sort"]=&gt; string(5) "false" ["facet.mincount"]=&gt; int(1) ["facet.missing"]=&gt; string(5) "false" ["facet.limit"]=&gt; int(-1) ["facet.method"]=&gt; string(4) "enum" } ); </code></pre>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload