I could be wrong, but I thought bit was an integer. Try changing fieldtype to 
integer.

-----Original Message-----
From: PeterKerk [mailto:vettepa...@hotmail.com] 
Sent: Wednesday, August 04, 2010 3:42 PM
To: solr-user@lucene.apache.org
Subject: Indexing boolean value


Im trying to index a boolean location, but for some reason it does not show up 
in my indexed data.

data-config.xml

        <entity name="location" query="select * from locations">
            <field name="id" column="ID" />
            <field name="title" column="TITLE" />
            <field name="city" column="CITY" />
            <field name="official" column="OFFICIALLOCATION" />

OFFICIALLOCATION is a MSSQL database field of type 'bit'


schema.xml

<field name="official" type="boolean" indexed="true" stored="true"/> <copyField 
source="official" dest="text" />

(im not sure why I would use <copyField, also tried it without that line, but 
still without luck)
--
View this message in context: 
http://lucene.472066.n3.nabble.com/Indexing-boolean-value-tp1023708p1023708.html
Sent from the Solr - User mailing list archive at Nabble.com.

Reply via email to