Re: example solr xml working fine but my own xml files not working
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 Here's my custom xml: ZS1 ZS1 RW How to index Solr on the Mac 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 ZS1, I get not results. Thanks in advance -- View this message in context: http://lucene.472066.n3.nabble.com/example-solr-xml-working-fine-but-my-own-xml-files-not-working-tp504245p924113.html Sent from the Solr - User mailing list archive at Nabble.com.
Re: example solr xml working fine but my own xml files not working
Thanks, Erik. I downloaded Luke and pointed it to my index. I can see the data I indexed via Luke, but still can't query it through the admin console. I queried for ZS1 and still got no results, but when I look at the index via Luke, I see the document was indexed. I'm stumped. Jeff On Sat, Jun 26, 2010 at 2:54 PM, Erick Erickson [via Lucene] < ml-node+924591-989457010-302...@n3.nabble.com > wrote: > 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 > results. > > 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" > > HTH > Erick > > On Sat, Jun 26, 2010 at 8:46 AM, codar <[hidden > email]<http://user/SendEmail.jtp?type=node&node=924591&i=0>> > 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 > > >multiValued="true" /> > > > >multiValued="true" /> > > >multiValued="true" /> > > > > Here's my custom xml: > > > > > >ZS1 > >ZS1 > >RW > >How to index Solr on the Mac > > > > > > 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 > > ZS1, I get not results. > > > > Thanks in advance > > > > > > -- > > View this message in context: > > > http://lucene.472066.n3.nabble.com/example-solr-xml-working-fine-but-my-own-xml-files-not-working-tp504245p924113.html<http://lucene.472066.n3.nabble.com/example-solr-xml-working-fine-but-my-own-xml-files-not-working-tp504245p924113.html?by-user=t> > > Sent from the Solr - User mailing list archive at Nabble.com. > > > > > -- > View message @ > http://lucene.472066.n3.nabble.com/example-solr-xml-working-fine-but-my-own-xml-files-not-working-tp504245p924591.html > To unsubscribe from Re: example solr xml working fine but my own xml files > not working, click here< (link removed) =>. > > > -- View this message in context: http://lucene.472066.n3.nabble.com/example-solr-xml-working-fine-but-my-own-xml-files-not-working-tp504245p924851.html Sent from the Solr - User mailing list archive at Nabble.com.
Re: example solr xml working fine but my own xml files not working
To add to my last, when I query *:* I get the results I expect, but if I query a term (ZS2) it doesn't find any matches. I must be missing something simple. I'm new to solr, so it's possible I just don't understand how to query it. Jeff On Sat, Jun 26, 2010 at 6:42 PM, Jeff Kemble wrote: > Thanks, Erik. > > I downloaded Luke and pointed it to my index. I can see the data I indexed > via Luke, but still can't query it through the admin console. I queried for > ZS1 and still got no results, but when I look at the index via Luke, I > see the document was indexed. I'm stumped. > > Jeff > > > On Sat, Jun 26, 2010 at 2:54 PM, Erick Erickson [via Lucene] < > ml-node+924591-989457010-302...@n3.nabble.com > > wrote: > >> 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 >> results. >> >> 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" >> >> HTH >> Erick >> >> On Sat, Jun 26, 2010 at 8:46 AM, codar <[hidden >> email]<http://user/SendEmail.jtp?type=node&node=924591&i=0>> >> 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 >> >> >> >multiValued="true" /> >> >> stored="true" >> >multiValued="true" /> >> >> >> >multiValued="true" /> >> > >> > Here's my custom xml: >> > >> > >> >ZS1 >> >ZS1 >> >RW >> >How to index Solr on the Mac >> > >> > >> > 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 >> > ZS1, I get not results. >> > >> > Thanks in advance >> > >> > >> > -- >> > View this message in context: >> > >> http://lucene.472066.n3.nabble.com/example-solr-xml-working-fine-but-my-own-xml-files-not-working-tp504245p924113.html<http://lucene.472066.n3.nabble.com/example-solr-xml-working-fine-but-my-own-xml-files-not-working-tp504245p924113.html?by-user=t> >> > Sent from the Solr - User mailing list archive at Nabble.com. >> > >> >> >> -- >> View message @ >> http://lucene.472066.n3.nabble.com/example-solr-xml-working-fine-but-my-own-xml-files-not-working-tp504245p924591.html >> To unsubscribe from Re: example solr xml working fine but my own xml files >> not working, click here< (link removed) =>. >> >> >> > -- View this message in context: http://lucene.472066.n3.nabble.com/example-solr-xml-working-fine-but-my-own-xml-files-not-working-tp504245p924880.html Sent from the Solr - User mailing list archive at Nabble.com.
Re: example solr xml working fine but my own xml files not working
Thanks for the link to "how to post" - not sure how to interpret that. I already posted the fields definition from the schema, the query I'm trying to submit, and the results. I'm not sure what more I can post. I get 0 results, and when I turn debug on it doesn't provide anything meaningful. Please reread my other posts for the answers to your questions. -- View this message in context: http://lucene.472066.n3.nabble.com/example-solr-xml-working-fine-but-my-own-xml-files-not-working-tp504245p926031.html Sent from the Solr - User mailing list archive at Nabble.com.
Re: example solr xml working fine but my own xml files not working
Binesh, Great advice. Yes, it does show results when I search for id:ZS1, COL:RW, and TI:MAC, but strangely it does not show results when I try AD:ZS1 or AN:ZS1. Also, I'm not sure where to find the default field, so I'm fairly certain I didn't change it. I'm entering the querytext in the "Make a Query" section of the Solr Admin page (http://localhost:8983/solr/admin/). Here's the result of my query(id:ZS0001): 0 129 on 10 0 id:ZS1 2.2 ZS1 ZS1 RW How to index Solr on the Mac ZS1 I'm reposting the data I indexed and the field definitions: Here's the data: ZS1 ZS1 ZS1 RW How to index Solr on the Mac Here's the schema.xml definitions: Thanks again for all the help!! Jeff -- View this message in context: http://lucene.472066.n3.nabble.com/example-solr-xml-working-fine-but-my-own-xml-files-not-working-tp504245p926340.html Sent from the Solr - User mailing list archive at Nabble.com.