NP. And I see why you'd be confused... What's actually happening is that if you're using the tutorial to make things run, a lot is happening under the covers. In particular, you're switching to the solr/example directory where you're invoking the start.jar, which is pre-configured to bring up the...you guessed it... example project.
This is purposely designed so you have to do the absolute minimal work to get something to play with up and running, but once you start trying anything new, you quickly need to get deeper into what's really happening to make progress. It's the usual trade-off between having to set up an entire installation before doing your first "hello world" program (which would include setting up a servlet container, placing everything in the right place, creating a schema from scratch, ad nauseum) and having something that "just works" but conceals lots and lots of details..... The Manning book for SOLR or LucidWorks are good resources.... Erick On Thu, Feb 18, 2010 at 3:03 PM, Pulkit Singhal <pulkitsing...@gmail.com>wrote: > I guess my n00b-ness is showing :) > > I started off using the instructions directly from > http://wiki.apache.org/solr/Solrj and there was no mention of schema > there and even after gettign this error and searching for schema.xml > in the wiki ... I found no meaningful hits so I thought it best to > ask. > > With your advice, I searched for schema.xml and found 13 instances of it: > > \solr_1.4.0\client\ruby\solr-ruby\solr\conf\schema.xml > \solr_1.4.0\client\ruby\solr-ruby\test\conf\schema.xml > \solr_1.4.0\contrib\clustering\src\test\resource\schema.xml > \solr_1.4.0\contrib\extraction\src\test\resource\schema.xml > \solr_1.4.0\contrib\velocity\src\main\solr\conf\schema.xml > \solr_1.4.0\example\example-DIH\solr\db\conf\schema.xml > \solr_1.4.0\example\example-DIH\solr\mail\conf\schema.xml > \solr_1.4.0\example\example-DIH\solr\rss\conf\schema.xml > \solr_1.4.0\example\multicore\core0\conf\schema.xml > \solr_1.4.0\example\multicore\core1\conf\schema.xml > \solr_1.4.0\example\solr\conf\schema.xml > \solr_1.4.0\src\test\test-files\solr\conf\schema.xml > \solr_1.4.0\src\test\test-files\solr\shared\conf\schema.xml > > I took a wild guess and added the field I wanted ("desc") into this > file since its name seemed to be the most generic one: > C:\apps\solr_1.4.0\example\solr\conf\schema.xml > > And it worked ... a bit strange that an example directory is used but > I suppose it is configurable somewhere? > > Thanks for you help Erick! > > Cheers, > - Pulkit > > On Thu, Feb 18, 2010 at 9:53 AM, Erick Erickson <erickerick...@gmail.com> > wrote: > > Add desc as a <field> in your schema.xml > > file would be my first guess. > > > > Providing some explanation of what you're trying to do > > would help diagnose your issues..... > > > > HTH > > Erick > > > > On Thu, Feb 18, 2010 at 12:21 PM, Pulkit Singhal < > pulkitsing...@gmail.com>wrote: > > > >> I'm getting the following exception > >> SEVERE: org.apache.solr.common.SolrException: ERROR:unknown field 'desc' > >> > >> I'm wondering what I need to do in order to add the "desc" field to > >> the Solr schema for indexing? > >> > > >