Never mind.  I misused the syntax.  :-)

-----Original Message-----
From: Nguyen, Joe [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, October 28, 2008 7:00 Joe
To: solr-user@lucene.apache.org
Subject: Query integer type

SITE is defined as integer.  I wanted to select all document whose SITE=3002, 
but SITE of the response was different.  

<field name="SITE" type="integer" indexed="true" stored="true" required="true"/>


http://localhost:8080/solr/mysite/select?indent=on&qt=standard&fl=SITE&fq:SITE:3002

http://localhost:8080/solr/mysite/select?indent=on&qt=dismax&fl=SITE&fq:SITE:3002

http://localhost:8080/solr/mysite/select?indent=on&qt=standard&fl=SITE&SITE:3002




<result name="response" numFound="470" start="0">
−
<doc>
<int name="SITE">1</int>
</doc>
−
<doc>
<int name="SITE">1</int>
</doc>
−
<doc>
<int name="SITE">1</int>
</doc>
−
<doc>
<int name="SITE">1</int>
</doc>
−
<doc>
<int name="SITE">2</int>
....

Field Analysis

Index Analyzer
org.apache.solr.schema.FieldType$DefaultAnalyzer {}
term position   1
term text       3002
term type       word
source start,end        0,4
payload         

Query Analyzer
org.apache.solr.schema.FieldType$DefaultAnalyzer {}
term position   1
term text       3002
term type       word
source start,end        0,4
payload           

Should term type be integer?

Any suggestion?

Cheers
  
  • replication handler - ... Simon Collins
    • Re: replication h... Noble Paul നോബിള്‍ नोब्ळ्
      • Re: replicati... Noble Paul നോബിള്‍ नोब्ळ्
        • RE: repli... Lance Norskog
          • Query... Nguyen, Joe
            • ... Nguyen, Joe
          • Re: r... Noble Paul നോബിള്‍ नोब्ळ्
            • ... Simon Collins
              • ... christophe
              • ... Noble Paul നോബിള്‍ नोब्ळ्
                • ... Bill Au
                • ... Walter Underwood
                • ... Noble Paul നോബിള്‍ नोब्ळ्
                • ... Walter Underwood
                • ... Chris Hostetter
                • ... Noble Paul നോബിള്‍ नोब्ळ्

Reply via email to