Note that there are some explanatory texts on larger screens.

plurals
  1. POUsing Filter Query on multivalued param in Solr , duplicated docs in response
    primarykey
    data
    text
    <p>I receive strange problem with using fq param in requests to Solr</p> <pre><code>curl '127.0.0.1:8080/solr/app/select?rows=0&amp;start=0&amp;q=app+AND+categoryId:20' &lt;?xml version="1.0" encoding="UTF-8"?&gt; &lt;response&gt; &lt;lst name="responseHeader"&gt;&lt;int name="status"&gt;0&lt;/int&gt;&lt;int name="QTime"&gt;1&lt;/int&gt; &lt;lst name="params"&gt;&lt;str name="start"&gt;0&lt;/str&gt;&lt;str name="q"&gt;app AND categoryId:20&lt;/str&gt; &lt;str name="rows"&gt;0&lt;/str&gt;&lt;/lst&gt;&lt;/lst&gt; &lt;result name="response" numFound="42236" start="0"&gt;&lt;/result&gt; &lt;/response&gt; </code></pre> <p>and second request</p> <pre><code>curl '127.0.0.1:8080/solr/app/select?rows=0&amp;start=0&amp;q=app+AND+categoryId:20&amp;fq=categoryId:20' &lt;?xml version="1.0" encoding="UTF-8"?&gt; &lt;response&gt; &lt;lst name="responseHeader"&gt;&lt;int name="status"&gt;0&lt;/int&gt;&lt;int name="QTime"&gt;1&lt;/int&gt; &lt;lst name="params"&gt;&lt;str name="start"&gt;0&lt;/str&gt;&lt;str name="q"&gt;app AND categoryId:20&lt;/str&gt; &lt;str name="fq"&gt;categoryId:20&lt;/str&gt;&lt;str name="rows"&gt;0&lt;/str&gt;&lt;/lst&gt;&lt;/lst&gt; &lt;result name="response" numFound="69480" start="0"&gt;&lt;/result&gt; &lt;/response&gt; </code></pre> <p>Different just in using addition param &amp;fq=categoryId:20 , but as you can see this filter also present in main query and must have no affect on result.</p> <p>I checked response and found a lot of duplicates in first request. </p> <p>also tags show 42236 docs for categoryId=20, </p> <p>So why query with &amp;fq=categoryId:20 return so lot(and duplicates) docs ? P.S. all other categories works correct.</p> <p>part of scheme:</p> <pre><code> &lt;field name="id" type="int" indexed="true" stored="true" required="true"/&gt; &lt;field name="title" type="text_general" indexed="true" stored="true" required="true"/&gt; &lt;field name="description" type="text_general" indexed="true" stored="false" required="true"/&gt; &lt;field name="categoryId" type="int" indexed="true" stored="false" required="true" multiValued="true"/&gt; &lt;field name="tags" type="string" indexed="true" stored="false" required="false" multiValued="true"/&gt; &lt;field name="type" type="int" indexed="true" stored="false" required="true"/&gt; </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.
    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