No worries...based on your email below, did you update the Solr schema? I think you need to tell it to allow for all fields, by uncommenting the dynamicField block in the schema.xml file to say "allow all fields" to come through, or modify the schema.xml in Solr's conf directory to specify which fields to send to Solr.
Does that make sense? I can provide more detailed help and will follow up later, but see if that helps for now. Cheers, Chris On Mar 30, 2012, at 7:54 AM, Thomas Bennett wrote: > Hey Chris, > > Sorry for the vagueness of this email... I'm trying to get solr working, but > I seem to be doing something wrong... > > Here's my indexer.properties file: > > # the URL path to Solr > config.solr.url=http://192.168.1.51:8983/solr > > # the URL path to the File Manager > config.filemgr.url=http://localhost:9101 > > config.ref.DataDownloadRef=dataref > > # a set of products to map from File Manager > # terminology into Solr index doc field > # terminology > map.MimeType=mimetype > map.ReceivedTime=receivedtime > map.FileSize=filesize > map.FileName=filename > map.Antennas=antennas > map.Observer=observer > map.Description=description > map.StartTime=starttime > > I then ran: > > ~$ java > -DSOLR_INDEXER_CONFIG=/var/kat/katconfig/static/oodt/cas-filemgr/policy/indexer.properties > -Djava.ext.dirs=/usr/local/oodt/cas-filemgr/lib/ > org.apache.oodt.cas.filemgr.tools.SolrIndexer --all --fmUrl > http://localhost:9101 > > Which returned things like: > .... > INFO: Looking up metadata for ProductId 19bcb4b8-7999-11e1-b581-8b771498975d > 30 Mar 2012 4:32:37 PM org.apache.oodt.cas.filemgr.tools.SolrIndexer indexAll > ... > > However when I tried to search from solr admin interface I tried a wild card > search to find anything: > > *:* > > Also tried: > > observer:thomas which returned: > undefined field observer > > Looks like I'm not getting the index across properly. > > Any ideas....? > > Tom > > On 28 March 2012 20:05, Thomas Bennett <[email protected]> wrote: > Hey Chris, > > Thanks for the info :-) much obliged. > > Tom. > > Sent from my iPhone > > On 28 Mar 2012, at 5:16 PM, "Mattmann, Chris A (388J)" > <[email protected]> wrote: > > > Hi Tom, > > > > No problem, here is the config sample: > > > > http://svn.apache.org/repos/asf/oodt/trunk/filemgr/src/main/resources/indexer.properties > > > > HTH! > > > > Cheers, > > Chris > > > > > > On Mar 27, 2012, at 2:41 AM, Thomas Bennett wrote: > > > >> Hey Chris / Paul, > >> > >> Thanks for the info. > >> > >> To get started, grab a fresh build (or build your own) copy of > >> 0.4-SNAPSHOT. Then, > >> cd bin/ and then run: > >> > >> java -Djava.ext.dirs=../lib org.apache.oodt.cas.filemgr.tools.SolrIndexer > >> > >> You can then get an idea of the command line parameters it takes: > >> > >> usage: java org.apache.oodt.cas.filemgr.tools.SolrIndexer > >> -a,--all Index all items in catalog > >> -cq,--catalogQuery <query> Not yet implemented > >> -d,--delete Delete items before indexing > >> -fmu,--fmUrl <Filemgr URL> URL to the CAS FileManager > >> -h,--help Print this message > >> -mf,--metFile <file> Index this met file > >> -o,--optimize Optimize the Solr index when done > >> -p,--product <productId> Product id to index > >> -su,--solrUrl <Solr URL> URL to the Solr server > >> > >> The command is looking for a SOLR_INDEXER_CONFIG. Is there anywhere I can > >> find some info on what is needed in the config file? > >> > >> I'm poking around the Solr docs to see if I can figure it out, but I > >> thought I would just post the questions at the same time :-) > >> > >> Cheers, > >> Tom > > > > > > ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ > > Chris Mattmann, Ph.D. > > Senior Computer Scientist > > NASA Jet Propulsion Laboratory Pasadena, CA 91109 USA > > Office: 171-266B, Mailstop: 171-246 > > Email: [email protected] > > WWW: http://sunset.usc.edu/~mattmann/ > > ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ > > Adjunct Assistant Professor, Computer Science Department > > University of Southern California, Los Angeles, CA 90089 USA > > ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ > > > ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Chris Mattmann, Ph.D. Senior Computer Scientist NASA Jet Propulsion Laboratory Pasadena, CA 91109 USA Office: 171-266B, Mailstop: 171-246 Email: [email protected] WWW: http://sunset.usc.edu/~mattmann/ ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Adjunct Assistant Professor, Computer Science Department University of Southern California, Los Angeles, CA 90089 USA ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
