Hey Tom, On Feb 23, 2012, at 5:13 AM, Thomas Bennett wrote:
> Hi Chris, > > I'm just picking up this thread. > > I'm ready get Solr up and running :-) Awesome! > > In reality, it the FM sees a star, we should really make sure we translate > the query on the FM end into a WildcardQuery if we're using the > LuceneCatalog. We should probably file a bug on this and fix at some point. > > In the meanwhile, one option if you need more complex searches is to take a > look at the SolrIndexer that I just checked in: > > https://issues.apache.org/jira/browse/OODT-326 > > Paul Ramirez wrote this tool and you can basically use it to dump the FM > catalog into Solr directly and then query > using Solr's syntax which is a bit more powerful than the FM's. The FM's > Query Syntax is a trimmed down version > suitable usually for production rules, for dumping metadata, and for staging > files. > > At this point, a primer on getting started would be most useful. 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 Let me know if you need more info to start bootstrapping it. Cheers, Chris ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 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 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
