Thanks for spending time on this issue.

I removed most the fields, and it's still not working:

http://localhost:8983/solr/update/csv?commit=true&separator=|&escape=\&strea
m.file=exampledocs/test1.txt

test1.txt content
guid|sku
1|ABC001

Query:
http://localhost:8983/solr/select/?q=guid%3A1&version=2.2&start=0&rows=10&in
dent=on&fl=*,score

output:
<?xml version="1.0" encoding="UTF-8"?>
<response>

<lst name="responseHeader">
 <int name="status">0</int>
 <int name="QTime">0</int>
 <lst name="params">
  <str name="fl">*,score</str>
  <str name="indent">on</str>
  <str name="start">0</str>
  <str name="q">guid:1</str>
  <str name="version">2.2</str>
  <str name="rows">10</str>
 </lst>
</lst>
<result name="response" numFound="1" start="0" maxScore="0.71231794">
 <doc>
  <float name="score">0.71231794</float>
  <long name="guid">1</long>
  <date name="timestamp">2008-04-04T19:35:44.427Z</date>
 </doc>
</result>
</response>

Schema:

   <field name="guid" type="slong" indexed="true" stored="true"
required="true" /> 
   <field name="sku" type="string" indexed="true" stored="true"/>

Guid is the unique numeric field.

Thanks,

Hung

-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Yonik Seeley
Sent: Friday, April 04, 2008 12:02 PM
To: solr-user@lucene.apache.org
Subject: Re: why don't all stored fields show up?

On Fri, Apr 4, 2008 at 11:57 AM, Hung Huynh <[EMAIL PROTECTED]> wrote:
> Do you think it might be a problem with my schema and data loading?

Maybe.

> I loaded
>  CSV with 39 fields and didn't get any error message. I have a total of 39
>  stored fields, but not all of them are reported back when I query for
them.

Try to tackle it by getting more specific.
Look at a single row in the CSV, and query for the id of that document
in the index and see what's missing.  Check the schema for those
missing fields.  Try to replicate the problem with another CSV file
with just that single record.

If you still can't figure it out, give us the following info:
- the URL used to load the CSV data
- the single record CSV file
- the result of querying for that single record
- your schema

-Yonik

Reply via email to