Re: Problem in parsing non-string dynamic field by using IndexReader

2009-07-06 Thread Yuchen Wang
that works perfectly! Thanks a lot! On Mon, Jul 6, 2009 at 2:12 PM, Chris Hostetter wrote: > : OK, here is my latest code to get the IndexReader from the solr core. > : However, it still printed out the non-string fields as special chars. I > do > : use the schema file here. Please help. > > you'

Re: Problem in parsing non-string dynamic field by using IndexReader

2009-07-06 Thread Chris Hostetter
: OK, here is my latest code to get the IndexReader from the solr core. : However, it still printed out the non-string fields as special chars. I do : use the schema file here. Please help. you'll want to use the IndexSchema object to get the FieldType object for your field name. then use the Fi

Re: Problem in parsing non-string dynamic field by using IndexReader

2009-07-05 Thread Yuchen Wang
t; > Yuchen, > > schema.xml is a Solr configuration file that you can find in a conf > directory under Solr home. Please go through the Solr tutorial on the site > first. > > Otis > -- > Sematext -- http://sematext.com/ -- Lucene - Solr - Nutch > > > > - Or

Re: Problem in parsing non-string dynamic field by using IndexReader

2009-07-05 Thread Otis Gospodnetic
r-user@lucene.apache.org > Sent: Sunday, July 5, 2009 1:19:12 PM > Subject: Re: Problem in parsing non-string dynamic field by using IndexReader > > Thanks for the reply. However, in the code I posted, where should I load the > schema.xml? I just created a Lucene IndexReader directl

Re: Problem in parsing non-string dynamic field by using IndexReader

2009-07-05 Thread Yuchen Wang
Thanks for the reply. However, in the code I posted, where should I load the schema.xml? I just created a Lucene IndexReader directly. On Sun, Jul 5, 2009 at 9:31 AM, Otis Gospodnetic wrote: > > Yuchen, > > Make sure the fields you are trying to read are stored (stored="true" in > schema.xml) >

Re: Problem in parsing non-string dynamic field by using IndexReader

2009-07-05 Thread Otis Gospodnetic
Yuchen, Make sure the fields you are trying to read are stored (stored="true" in schema.xml) Otis -- Sematext -- http://sematext.com/ -- Lucene - Solr - Nutch - Original Message > From: Yuchen Wang > To: solr-user@lucene.apache.org > Sent: Sunday, July 5, 2009 12:43:50 AM > Subjec