I was reading that URL -> http://wiki.apache.org/solr/FilterQueryGuidance

In "Stray bits" paragraph,
"Memory consumption per filter field value is not a great concern here
as the filterCache typically (perhaps always) stores only bit vectors,
each bit representing a boolean to signal whether or not the document
in question is a member of the set matching the filter specification.
Document reference is implicit by each bit's position in the vector;
this is by virtue of the fact that Solr's internal document IDs (which
are different from the document IDs the user may assign via the
<uniqueKey> in schema.xml) are a sequence of consecutive integers."

Below is part of my schema.xml.
===========================
<uniqueKey>id</uniqueKey>
<field name="id" type="string" indexed="true" stored="true" required="true" />
===========================
Type of id field is "string".
I think the setting cause difference result in q and fq query.
What do you think?


2009/10/13 FUJIKAKE Takayoshi <fujik...@gmail.com>:
> I tried below query later.
> http://solr:8983/solr/select/?q=*:*+AND+foo_num:0&start=0&rows=10
>
> Does it mean same "?q=*:*&fq=foo_num:0" ?
>
>
> 2009/10/13 Chantal Ackermann <chantal.ackerm...@btelligent.de>:
>> "+" is the url encoded space " "
>> use "+%2B" to get the string " +" (url encoded).
>>
>> e.g.
>> http://solr:8983/solr/select/?q=*:*+%2Bfoo_num:0&start=0&rows=10
>>
>> FUJIKAKE Takayoshi schrieb:
>>>
>>> Hi,
>>>
>>> I try to using Solr filtering by fq below query.
>>> http://solr:8983/solr/select/?q=*:*&fq=foo_num:0&start=0&rows=10
>>> This result response included 'numFound="106"' .
>>>
>>> Meanwhile, filtering by q below query.
>>> http://solr:8983/solr/select/?q=*:*+foo_num:0&start=0&rows=10
>>> This result response included 'numFound="20304"' .
>>>
>>> I don't know what's so wrong...
>>> I understood that "+" means "AND" in q logical expression.
>>
>> --
>> Chantal Ackermann
>> Consultant
>>
>> mobil    +49 (176) 10 00 09 45
>> email    chantal.ackerm...@btelligent.de
>>
>> --------------------------------------------------------------------------------------------------------
>>
>> b.telligent GmbH & Co. KG
>> Uptown München / Campus D
>> Georg-Brauchle-Ring 60
>> D-80992 München
>>
>> fon     +49 (89) 54 84 25 60
>> fax     +49 (89) 54 84 25 69
>> web     www.btelligent.de
>>
>> Registered in Munich: HRA 84393
>> Managing Director: b.telligent Verwaltungs GmbH, HRB 153164 represented by
>> Sebastian Amtage and Klaus Blaschek
>> USt.Id.-Nr. DE814054803
>>
>>
>>
>> Confidentiality Note
>> This email is intended only for the use of the individual or entity to which
>> it is addressed, and may contain information that is privileged,
>> confidential and exempt from disclosure under applicable law. If the reader
>> of this email message is not the intended recipient, or the employee or
>> agent responsible for delivery of the message to the intended recipient, you
>> are hereby notified that any dissemination, distribution or copying of this
>> communication is prohibited. If you have received this email in error,
>> please notify us immediately by telephone at +49 (0) 89 54 84 25 60. Thank
>> you.
>>
>

Reply via email to