lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Erick Erickson <>
Subject Re: example solr xml working fine but my own xml files not working
Date Sat, 26 Jun 2010 18:53:40 GMT
The first place you should go for this type of question is the
solr admin page and look at what's actually in your index.

A very handy tool for this is also Luke. Get a copy of it (google
Lucene Luke) and point it at your index and poke around
to see if what's actually in your index is what you expect.

If that all doesn't help, post more information. Particularly
what query you're submitting that you expect to return

Also, try executing the query with &debugQuery=on, that may
give you some clues (also note that there's a checkbox on the
Admin page for debug info if you go to the "full interface"


On Sat, Jun 26, 2010 at 8:46 AM, codar <> wrote:

> I'm struggling with this very same problem.  I can index the example files
> fine. When I try adding a custom file, it appears to index without issue;
> but I get no search results via the admin console.  I've also tried
> modifying one of the files (monitor.xml); it also did not update.  I'm
> using
> solr 1.4.1 on a MAC.  Any help would be greatly appreciated.
> I added these fields to the schema.xml
>                <field name="AD" type="text" indexed="true" stored="true"
>                        multiValued="true" />
>                <field name="COL" type="text" indexed="true" stored="true"
>                        multiValued="true" />
>                <field name="TI" type="text" indexed="true" stored="true"
>                        multiValued="true" />
> Here's my custom xml:
> <add><doc>
>                <field name="id">ZS00001</field>
>                <field name="AD">ZS00001</field>
>                <field name="COL">RW</field>
>                <field name="TI">How to index Solr on the Mac</field>
> </doc></add>
> I cd to the exampledocs dir and run: java -jar post.jar my_data.xml
> Here are the results:
> SimplePostTool: version 1.2
> SimplePostTool: WARNING: Make sure your XML documents are encoded in UTF-8,
> other encodings are not currently supported
> SimplePostTool: POSTing files to http://localhost:8983/solr/update..
> SimplePostTool: POSTing file tr_single.xml
> SimplePostTool: COMMITting Solr index changes..
> So, it appears to have indexed without issue, but yet when I search for the
> ZS00001, I get not results.
> Thanks in advance
> --
> View this message in context:
> Sent from the Solr - User mailing list archive at

  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message